User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,565 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,594 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 679 | Replies: 3
Reply
Join Date: Nov 2007
Posts: 4
Reputation: johnywhy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
johnywhy johnywhy is offline Offline
Newbie Poster

Remote Scripting Question/Challenge

  #1  
Nov 30th, 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 : Nov 30th, 2007 at 11:09 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,774
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 330
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Rebellion Revamped

Re: Remote Scripting Question/Challenge

  #2  
Nov 30th, 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."

"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
Reply With Quote  
Join Date: Nov 2007
Posts: 4
Reputation: johnywhy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
johnywhy johnywhy is offline Offline
Newbie Poster

Re: Remote Scripting Question/Challenge

  #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 12:39 am.
Reply With Quote  
Join Date: Nov 2007
Posts: 4
Reputation: johnywhy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
johnywhy johnywhy is offline Offline
Newbie Poster

Re: Remote Scripting Question/Challenge

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

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:10 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC