Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 49
Search took 0.17 seconds.
Search: Posts Made By: PassiveSmoking
Forum: Ajax and Design 07-19-2007, 03:26 PM
Replies: 0
Views: 1,650
Posted By PassiveSmoking
Interactive mode and IE

I have already asked on the jQuery discussion group about this but as far as I can discern the problem lies in Internet Explorer's XHR implementation and needs to be addressed at that level.

I...
Forum: HTML & CSS 07-17-2007, 07:31 AM
Replies: 2
Views: 840
Posted By PassiveSmoking
I have tried asking on the jQuery google group...

I have tried asking on the jQuery google group but nobody seemed to have any ideas regarding it.
Forum: HTML & CSS 07-16-2007, 03:45 PM
Replies: 2
Views: 840
Posted By PassiveSmoking
Question Simulating an elastic table with a list and spans

I am rewriting a page that originally displayed a table to use an ordered list instead because it is more semancitally correct, and because I need to be able to use jQuery draggables with it and they...
Forum: Post a JavaScript 06-20-2007, 12:44 PM
Replies: 1
Views: 800
Posted By PassiveSmoking
Arrays Vs. Objects, best of both worlds

I recently had a problem where I needed to build up an array of strings, that would be join()ed into a string when the array building was complete. however, each value could only be in the array...
Forum: JavaScript programming 05-25-2007, 12:08 PM
Replies: 11
Views: 22,991
Posted By PassiveSmoking
After doing some profiling in Firebug it also...

After doing some profiling in Firebug it also seems that Math.floor (or Math.round is slightly faster than parseInt. Not by a massive amount but enough to make a difference in loops.
Forum: JavaScript programming 05-24-2007, 12:12 PM
Replies: 7
Views: 843
Posted By PassiveSmoking
.htmlFor seems like a hack. But it also seems...

.htmlFor seems like a hack. But it also seems like a cross-browser compatible hack so I'll take it. :)
Forum: JavaScript programming 05-24-2007, 10:28 AM
Replies: 7
Views: 843
Posted By PassiveSmoking
Accessing the "for" property of a form label

I need to be able to determine what form control a label is associated with from within a script. Normally I'd access properties of items by name, like thisLink.href, or thisControl.value, but you...
Forum: JavaScript programming 05-12-2007, 12:45 AM
Replies: 2
Views: 2,993
Posted By PassiveSmoking
because: a)No actual Flash is loaded into...

because:

a)No actual Flash is loaded into the page, the movie loader simply runs a test javascript (the one from http://www.featureblend.com/javascript-flash-detection-library.html) and if it...
Forum: JavaScript programming 05-11-2007, 04:59 PM
Replies: 2
Views: 2,993
Posted By PassiveSmoking
jQuery DOM friendly search and replace

Some of you no doubt remember that I was working on a javascript that did a regex search and replace on the innerHTML of a section of a site I do front end development for. I got it working in the...
Forum: JavaScript programming 05-11-2007, 03:29 PM
Replies: 2
Views: 832
Posted By PassiveSmoking
The results I got doing that all depended on an...

The results I got doing that all depended on an invisible movie. I did manage to find a script that did what I wanted in the end though.
Forum: JavaScript programming 05-10-2007, 05:19 PM
Replies: 2
Views: 832
Posted By PassiveSmoking
Javascript Flash Detect

My situaition is as follows:

I have been asked to create a javascript based on jQuery that creates a link in a web page to an external site. This link, when clicked, should cause an iFrame to...
Forum: JavaScript programming 04-25-2007, 05:46 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
While I would love to create a fully standards...

While I would love to create a fully standards compliant (or as standards compliant as any code that uses XHR can be) solution there is a deadline to meet.

After a hard day's slaving over the...
Forum: JavaScript programming 04-25-2007, 04:05 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
Have you got any advice or know of any tutorials...

Have you got any advice or know of any tutorials on doing that? As far as I can tell it would require iterating through all the elements inside the content div, finding the text in each fragment,...
Forum: JavaScript programming 04-25-2007, 01:59 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
I still haven't solved this but I know what's...

I still haven't solved this but I know what's causing the problem now.

On one test page there are hidden form fields that contain a value that includes the letters "usb". USB is one of the...
Forum: JavaScript programming 04-24-2007, 01:13 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
After experimenting I found a regexp that would...

After experimenting I found a regexp that would produce the effects I need, except Internet Explorer's regexp implementation seems to be different enough from other browsers for it to fail under IE. ...
Forum: JavaScript programming 04-23-2007, 01:31 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
I'm really struggling to find a solution to this...

I'm really struggling to find a solution to this problem, so I'm going to divulge as much as I am allowed to about the script and the data it is working with.

A HTML file loads the script, which...
Forum: JavaScript programming 04-19-2007, 03:27 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
Thanks but I can't quite figure out your code...

Thanks but I can't quite figure out your code well enough to adapt it for my needs.

After experimenting I tried the following as the regex to use, and found it worked apparently perfectly,...
Forum: JavaScript programming 04-18-2007, 10:22 AM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
The solution from my last post doesn't seem to...

The solution from my last post doesn't seem to work 100% reliably Using the following example regex with the following example input text results in matches being made that I don't want.
...
Forum: JavaScript programming 04-17-2007, 10:39 AM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
Here's my attempt at a solution. It is supposed...

Here's my attempt at a solution. It is supposed to match against a keyword if it's not enclosed in a <a> ... </a> pair or in a tag attribute (which I define as ="..."). For the most part it seems...
Forum: JavaScript programming 04-16-2007, 03:13 PM
Replies: 11
Views: 1,265
Posted By PassiveSmoking
Need help with regexp

I am writing a javascript that is intended to help users look up jargon terms. It pulls the terms in from an XML file, searches for them in the HTML and replaces them with hyperlinks to a page that...
Forum: Ajax and Design 04-03-2007, 04:11 PM
Replies: 2
Views: 4,736
Posted By PassiveSmoking
retrieving HTML inside XML

I am working on a script that retrieves a list of jargon terms from an XML file, finds the term in a HTML document and then wraps the terms it finds in links that open a div wit ha definition of the...
Forum: JavaScript programming 02-12-2007, 08:01 AM
Replies: 3
Views: 842
Posted By PassiveSmoking
Okay, thanks. Makes more sense for it to be in...

Okay, thanks. Makes more sense for it to be in here.
Forum: JavaScript programming 02-08-2007, 10:55 AM
Replies: 3
Views: 842
Posted By PassiveSmoking
Hold on, did I post this to the wrong forum? Or...

Hold on, did I post this to the wrong forum? Or was it moved here? I'm certain I posted it in the JavaScript forum. If I posted in the wrong forum then I apologize, I guess I wasn't paying...
Forum: JavaScript programming 02-08-2007, 10:16 AM
Replies: 3
Views: 842
Posted By PassiveSmoking
Problem with unobtrusive JavaScript hit counter

This is a project I was assigned at work. It uses JavaScript, PostgreSQL and PHP, but as I think it's the JavaScript that's not behaving as expected I am posting it to this forum.

Database...
Forum: Post a PHP snippet 01-11-2007, 03:51 PM
Replies: 1
Views: 3,051
Posted By PassiveSmoking
Generating more efficiant SQL

When you want to fetch data from a SQL database it's common practice to do something like the following:



function getRecord ($recordID)
{
$query = 'SELECT * FROM myTable WHERE recordID =...
Showing results 1 to 25 of 49

 
Forum Jump

All times are GMT +1. The time now is 12:26 PM.