[jQuery] Problems injecting text into div classes

2009-11-25 Thread shaf
Hi Guys I have several div classes and I am trying to insert some html into one of them but firebug keeps telling me its not a function. Code below: div class=direction/div div class=direction/div div class=direction/div div class=direction/div $(.direction)[1].html(div class=\direction_err\The

[jQuery] Re: Problems injecting text into div classes

2009-11-25 Thread shaf
string so you do not need to escape the quotes, but that is just a style issue $(.direction).eq(1).html('div class=direction_errThe Map cannot be loaded./div'); On Nov 25, 3:25 pm, shaf shaolinfin...@gmail.com wrote: Hi Guys I have several div classes and I am trying to insert some html

[jQuery] cannot insert html into DIV

2009-11-04 Thread shaf
Hi Guys, I have several .class DIVs I want to manipulate. I have retrieved them using the following code: var canvasClasses = new Array(); $(.canvas).each(function() { canvasClasses.push() }); I am now trying to insert some HTML into the DIVs but its not

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread shaf
That doesnt work either. On Nov 4, 11:28 pm, Andrew Tan afh...@gmail.com wrote: You have to supply the canvas object as a parameter to the push function to add it to the array. canvasClasses.push($(this)); On Thu, Nov 5, 2009 at 10:16 AM, shaf shaolinfin...@gmail.com wrote: Hi Guys, I

[jQuery] Re: cannot insert html into DIV

2009-11-04 Thread shaf
a jQuery object to the canvasClasses array. Calling innerHTML on a jQuery object won't work. Try canvasClasses[0].html('htmlhere') On Nov 4, 3:35 pm, shaf shaolinfin...@gmail.com wrote: That doesnt work either. On Nov 4, 11:28 pm, Andrew Tan afh...@gmail.com wrote: You have to supply

[jQuery] Timeout

2009-08-15 Thread shaf
Hi Guys How do I set a timeout in jquery ? E.g. if a page is inactive for 20 seconds a message pops up asking the user to refresh the page.

[jQuery] json request not working

2009-08-13 Thread shaf
Hi Guys I am trying to send/recieve in json. Whenever I set the dataType to json my BeforeSend, error and success functions don't work. Code below: $.ajax({ type: POST, async: false, dataType: json,

[jQuery] Re: POST data not being sent

2009-07-29 Thread shaf
Thanks for the reply but that doesnt really answer my question.

[jQuery] Re: POST data not being sent

2009-07-29 Thread shaf
Ok guys, thats for the advice and replies. Cesar, if thats how you construct a GET string how would I construct a POST string ? On Jul 29, 5:45 pm, Cesar Sanz the.email.tr...@gmail.com wrote: Hello pal, take a look at your code, do you see any strange?? Oh, yes... url: url: _HOMEDIR+send?+str

[jQuery] get value of textfield

2009-07-29 Thread shaf
Hi Guys How do I get the value of a form textfield ? form input type=text name=name id=name / Your Name /form

[jQuery] POST data not being sent

2009-07-28 Thread shaf
Hi Guys I am trying to make an ajax POST request but its not working. Code below: var _HOMEDIR = http://localhost/personal/index.php/home/;; $(document).ready(function() { $(form).submit(function() { var str = $(form).serialize(); $.ajax({

[jQuery] Using Queue

2009-07-24 Thread shaf
Hi Guys I have 4 scripts I want to load and insert into the html. So the script should download and insert the first and then the second and so on. How can I do this in such a order ? From my research it looks like a queue is the best option for this. Is this true ? If yes, how do I go about to

[jQuery] Getting link ID

2009-07-23 Thread shaf
Hi Guys i have a click event on my links. Each link has an ID. Is there any way I can get the link ID when the user clicks it ? See below for code: a id=menu_home href=#Home/a a id=menu_contact href=#Contact/a //JS $(document).ready(function() { // Add menu event listeners var

[jQuery] Re: Getting link ID

2009-07-23 Thread shaf
are useless. They can only give you answers. On Thu, Jul 23, 2009 at 4:44 PM, shaf shaolinfin...@gmail.com wrote: Hi Guys i have a click event on my links. Each link has an ID. Is there any way I can get the link ID when the user clicks it ? See below for code: a id=menu_home href=#Home

[jQuery] Working with progressbar as a preloader

2009-07-23 Thread shaf
Hi Guys I want to use the progress bar on the site first load which will basically act like the gmail preloader. The aim is to use an AJAX request which will download the content and the preloader is running at the frontend. Once the content is downloaded the progressbar is removed and the

[jQuery] Insert SWF using JS

2009-07-23 Thread shaf
Hi Guys I have some JS that flash cs4 generated when I published my swf. I am trying to do some AJAX and download the SWF and then insert it into the page's DIV tag. How can I do this. Code below: AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/

[jQuery] adding click event

2009-07-23 Thread shaf
Hi Guys I have just inserted some content into my html page and now Im trying to add event listeners for some of the links in the inserted content but nothing happens. Do I need to update something before I can add a click event?

[jQuery] Modify look feel of scrollbar

2009-07-21 Thread shaf
Hi Guys Is there any way I can modify the look and feel of my scrollbar ? I looked into the jScrollPane plugin but it only works for jquery 1.2 and Im using 1.3.

[jQuery] Using ProgressBar

2009-07-18 Thread shaf
Hi Guys I want to use the progress bar to display to content load progression when the site is loaded (like gmail). How can I do this ?

[jQuery] JS not working

2008-07-11 Thread shaf
Hi Guys I am using JQuery and a rounded corners plugin to round the edges of my div IDs. I have an index page and use innerHTML to inject HTML into the index page. The problem is the HTML which is injected into the index page, the div tags which are supposed to become rounded remain unchanged.