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 455,982 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 3,776 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: 776 | 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  
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 7,009
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: 25
Solved Threads: 368
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

Re: Remote Scripting Question/Challenge

  #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.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
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 1: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.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

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