Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ajax Programming

Target Div


I have written a page with an  dropdown option box.  When the onChange
event fires, an ASP script is called and the page is updated (perfect
AJAX so far).

Further down on the page, I'd like to do the same thing but the second
script updates the page in the same location as the first.  I assume I
need to adjust the javascript to target specific divs for each call
but have no idea how to do this an cannot seem to find a working
example on the web.

Any ideas?  Thanks in advance for your help.

On Feb 9, 2:14 pm, "MAB" <mbeck@gmail.com> wrote:

> I have written a page with an  dropdown option box.  When the onChange
> event fires, an ASP script is called and the page is updated (perfect
> AJAX so far).

> Further down on the page, I'd like to do the same thing but the second
> script updates the page in the same location as the first.  I assume I
> need to adjust the javascript to target specific divs for each call
> but have no idea how to do this an cannot seem to find a working
> example on the web.

> Any ideas?  Thanks in advance for your help.

You'll need to provide more details. Are you using any particular ajax
'framework' or did you implement ajax yourself? If you implemented it
yourself just change the id you use in the second ajax function... if
you're using a framework, then there will most likely be parts that
take an id and update the innerHTML of the element and I assume that's
what you're doing from the looks of the question... so yeah, just give
it the id of the second element in the ajax call further down the
page. If this doesn't really help, post some code and we can help
more.

Al

-----------------------------------------------Reply-----------------------------------------------

I'm guesing your using the basic ajax routine right?
if so, then you'll have to create different instances of this object.
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc