Ajax 3 contained files

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Nov 2007
Posts: 290
Reputation: kv79 is an unknown quantity at this point 
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Ajax 3 contained files

 
0
  #1
Mar 21st, 2008
HI all ,
I have a question about Ajax.
FIRST : Can I call ID from the other files who contain J.S. code with ID ?
SECOND : I have Index.html , prototype-1.6.0.2.js , and I want to make changes from files2.html to files3.html .
Can I do that ,and how.

Thank y0u f0r your l1f3 t1m3 .
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,642
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 471
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Ajax 3 contained files

 
0
  #2
Mar 22nd, 2008
> FIRST : Can I call ID from the other files who contain J.S. code with ID ?

As long as the page which includes the script has an element with the given ID and the function using that ID is called after the entire page has been loaded.

> SECOND : I have Index.html , prototype-1.6.0.2.js , and I want to make changes from
> files2.html to files3.html

Questions related to external libraries are better off in their respective forums (i.e. the prototype forum), though I am pretty sure you need a server side language of your choice depending on the kind of 'change' you need.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 290
Reputation: kv79 is an unknown quantity at this point 
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Re: Ajax 3 contained files

 
0
  #3
Mar 24th, 2008
oh , 1 ) Thanks
2) Can i use Language like PHP ? or what ever you think that easy to learn ?
I am not sure what kind of change would be unless change like example :
In the file2 change a background because file3 got click on his page .
example :
Change file3 his one element ID , because file2 and his pal file1 got name from the user .


Thank y0u 4 y0ur eff0rt to understand .
Last edited by kv79; Mar 24th, 2008 at 6:05 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,642
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 471
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Ajax 3 contained files

 
0
  #4
Mar 24th, 2008
> Can i use Language like PHP ? or what ever you think that easy to learn ?

There are many languages out there like Java, Perl, PHP etc. Pick any one of them and start learning though PHP seems to be the easier choice here because of its widespread use.

> I am not sure what kind of change would be unless change like example :
> In the file2 change a background because file3 got click on his page .
> example :
> Change file3 his one element ID , because file2 and his pal file1 got name from the user .

You can do all that and much more once you start off with server side programming. These server side technologies impart dynamic nature to the otherwise static pages and so changing the background color of a page based on a click on another page and much more complicated things are possible.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 290
Reputation: kv79 is an unknown quantity at this point 
Solved Threads: 7
kv79 kv79 is offline Offline
Posting Whiz in Training

Re: Ajax 3 contained files

 
0
  #5
Mar 24th, 2008
Ah ,Thanks a lot .
Any recommmandation for that language?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,642
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 471
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Ajax 3 contained files

 
0
  #6
Mar 25th, 2008
I use Java at work but PHP is simple enough to be picked up by someone who doesn't have any experience with server side languages. Ruby is also a nifty and cool language worth checking out. Take a look at the code snippets written in different languages and just go with the one you are most comfortable with.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC