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
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
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
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
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
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.
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,
Thanks for the reply but that doesnt really answer my question.
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
Hi Guys
How do I get the value of a form textfield ?
form
input type=text name=name id=name / Your Name
/form
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({
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
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
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
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
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/
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?
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.
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 ?
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.
20 matches
Mail list logo