Remote Scripting Question/Challenge

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

Join Date: Nov 2007
Posts: 4
Reputation: johnywhy is an unknown quantity at this point 
Solved Threads: 0
johnywhy johnywhy is offline Offline
Newbie Poster

Remote Scripting Question/Challenge

 
0
  #1
Dec 1st, 2007
hi

i'd like to display a form on my page from a page on a remote website. I have permission to use the content on that remote site. I dont want to display the entire remote page, just the form. I have no control over the element names or ID's on the remote site, so I need to refer to the remote element by tag and number, or by XPATH.

I also want to display the response from the form on my page, after the user clicks "submit". The response, also, should only display the element of the remote page i specify. If the remote form has several response steps, my page should display each response in turn.

i want my page to be ignorant about the contents of the remote form-- except for tag and element number. The script should work with any remote form.

I prefer client-side script and html, to reduce load on my server, because I want to load the form response into the same page on the client-side, AJAX-style, rather than refresh my entire page, or go to another page.

An iFrame would suffice, if iFrames could auto-resize to fit the content, and if there was a way to load only part of the remote page, but I have not found a way to do either. So i think it has to be javascript. I've read that XMLHttpRequest cannot query external domains; if so, is there another way?

Any suggestions?
Many thanks
Last edited by johnywhy; Dec 1st, 2007 at 12:09 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,652
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: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Remote Scripting Question/Challenge

 
0
  #2
Dec 1st, 2007
> I've read that XMLHttpRequest cannot query external domains
So try this and this.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 4
Reputation: johnywhy is an unknown quantity at this point 
Solved Threads: 0
johnywhy johnywhy is offline Offline
Newbie Poster

Re: Remote Scripting Question/Challenge

 
0
  #3
Dec 1st, 2007
thanks, but those do not do it. the first solution requires both sites to reside in the same domain-- its only for cross-SUBdomain scripting. the second solution requires a 3rd-party code library, which, as i mentioned, i'd like to avoid, and it uses an iFrame, which, as i mentioned, has other drawbacks.
Last edited by johnywhy; Dec 1st, 2007 at 1:39 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 4
Reputation: johnywhy is an unknown quantity at this point 
Solved Threads: 0
johnywhy johnywhy is offline Offline
Newbie Poster

Re: Remote Scripting Question/Challenge

 
0
  #4
Dec 1st, 2007
...tho i may be misunderstanding what dojo is... seems like a server-side component, right?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 1122 | Replies: 3
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