473,569 Members | 2,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cross domain autofill and submit

Hello,

Im trying to make a "Search Many Sites from One Location".

Heres my problem:
I have a form on my page which allows the user to enter
a search term and select which site he would like the results from.

(the sites dont allow URL pasting) the sites are library catalogues.

heres my idea, can this be done?:
User enters search term, selects site they want results from and
enters submit.

This takes user to a framed page with frame1 being library catalogue.
now either the frameset or frame 2 does this
at timed interval gets the variable that was submited from search term
entered
and uses something like this bookmarklet
javascript:func tion ROIoiW(){var
i=0,j,A='anonym ous',D,E,F=docu ment.forms;whil e(i<F.length){E =F[i].elements;for(j =0;j<E.length;j ++){D=E[j];if(D.type=='te xt'){D.value=(D .name.toUpperCa se().indexOf('M AIL')!=-1)?A**@example. com':A}}i++}}RO IoiW();void(nul l)

and something to fill in the search term and press submit in frame1

Aug 29 '06 #1
8 2179
Br************* *@gmail.com said the following on 8/28/2006 8:14 PM:
Hello,

Im trying to make a "Search Many Sites from One Location".

Heres my problem:
I have a form on my page which allows the user to enter
a search term and select which site he would like the results from.

(the sites dont allow URL pasting) the sites are library catalogues.

heres my idea, can this be done?:
Not in a default security environment.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 29 '06 #2

Dear Randy,
can Javascript prompt the user to change Internet Explorers
security options.

Aug 29 '06 #3
Br************* *@gmail.com wrote:
Dear Randy,
can Javascript prompt the user to change Internet Explorers
security options.
Yes, but it's much better to give them a link to a page with detailed
instructions - most browsers don't let you read an alert and modify
options at the same time. You might also want to tell them why
cross-site scripting is prevented by default.

How do you know they are using IE? How many users will carry out your
request?
--
Rob

Aug 29 '06 #4
RobG said the following on 8/28/2006 9:43 PM:
Br************* *@gmail.com wrote:
>Dear Randy,
can Javascript prompt the user to change Internet Explorers
security options.

Yes, but it's much better to give them a link to a page with detailed
instructions - most browsers don't let you read an alert and modify
options at the same time.
None of mine do :)
You might also want to tell them why cross-site scripting is prevented by default.
Or the pitfalls of leaving it enabled after they leave the site.
How do you know they are using IE?
<!--[if gte IE 4]>
<script type="text/javascript">
alert('Its IE in some form or another')
</script>
<![endif]-->

Until other browsers mimic the IE conditionals... ...
And of course, the IE engines that are wrapped. AOL's browser doesn't
display that alert even though AOL uses IE as an embedded browser.
How many users will carry out your request?
Very true :)

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 29 '06 #5
All users of our site so far have been using IE.
okay so if I make a screen that instructs them on how to
change their security.

still how do I go about doing it?
RobG wrote:
Br************* *@gmail.com wrote:
Dear Randy,
can Javascript prompt the user to change Internet Explorers
security options.

Yes, but it's much better to give them a link to a page with detailed
instructions - most browsers don't let you read an alert and modify
options at the same time. You might also want to tell them why
cross-site scripting is prevented by default.

How do you know they are using IE? How many users will carry out your
request?
--
Rob
Aug 29 '06 #6

Br************* *@gmail.com wrote:
All users of our site so far have been using IE.
You don't know that for sure. Even if it's true (and it may be), it
may not always be that way. If you believe the browser statistics that
are published by some sites (and many here are very sceptical of such
numbers) IE represents maybe 70 to 90% of web surfers.

It may be that your site is unfriendly to other browsers so visitors
just leave. In any case, you seem to be missing 10 to 30% of potential
visitors, maybe more.

Numbers from site-to-site vary greatly - w3schools puts IE useage at
about 60%, Ars Technica (which seems to be a US site) reported IE usage
among their visitors at 30% in November 2005.

<URL: http://www.w3schools.com/browsers/browsers_stats.asp >
<URL: http://arstechnica.com/news.ars/post/20051103-5525.html >

okay so if I make a screen that instructs them on how to
change their security.
still how do I go about doing it?
Please don't top-post, interleave replies between trimmed quotes.

If you aren't already familiar with the pros and cons of enabling
cross-domain scripting in a browser, then you need much more
information that I (and probably anyone else here) is prepared to
provide.

Your question is really a browser security question, not a JavaScript
question and as such is off-topic here. That doesn't mean it won't be
answered, but that you will probably get better answers in a forum
where such questions are on-topic.

--
Rob

Aug 29 '06 #7
JRS: In article <n5************ *************** ***@comcast.com >, dated
Mon, 28 Aug 2006 22:46:26 remote, seen in news:comp.lang. javascript,
Randy Webb <Hi************ @aol.composted :
>
<!--[if gte IE 4]>
<script type="text/javascript">
alert('Its IE in some form or another')
</script>
<![endif]-->
It looks as if that should alert in IE 4. For me, it does not.
Missing apostrophe.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/>? JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Aug 30 '06 #8
Dr John Stockton said the following on 8/30/2006 11:26 AM:
JRS: In article <n5************ *************** ***@comcast.com >, dated
Mon, 28 Aug 2006 22:46:26 remote, seen in news:comp.lang. javascript,
Randy Webb <Hi************ @aol.composted :
><!--[if gte IE 4]>
<script type="text/javascript">
alert('Its IE in some form or another')
</script>
<![endif]-->

It looks as if that should alert in IE 4. For me, it does not.
Missing apostrophe.
According to MSDN, IE4 doesn't support the conditional comments.

<URL:http://msdn.microsoft. com/library/default.asp?url =/workshop/author/dhtml/overview/ccomment_ovw.as p>

It is considered a "downlevel browser" :\

As for the apostrophe, it's irrelevant anyway.

<script type="text/javascript">
var showSecondAlert = true;
</script>
<!--[if gte IE 5]>
<script type="text/javascript">
alert("It's IE5+ in some form or another along with JRS' apostrophe")
showSecondAlert = false;
</script>
<![endif]-->
<script type="text/javascript">
if (showSecondAler t){
var alertMessage = "Either you are using a non-IE browser or "
alertMessage += "your IE doesn't support conditional comments (IE4)."
alert(alertMess age)
}
</script>
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 30 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3468
by: Chris Sharman | last post by:
I'd like to design my pages to work cooperatively with browser autofill features. I've loked around, but can't find any good documentation on supported/unsupported field names (http://toolbar.google.com/autofill_help.html gives some details, but doesn't make it clear to me how to name my form fields; rfc3106 only seems to cover ecommerce...
1
18517
by: shortbackandsides.no | last post by:
I'm having a lot of difficulty trying to persuade the Google toolbar autofill to act consistently, for example ======================= <html><head> <title>autofill test</title> </head><body> <form method="POST" action=""> 1 email <input type="text" name="email"><br> 2 name <input type="text" name="name"> <br>
4
4895
by: Morten Wennevik | last post by:
I have a login.aspx page consisting of a username label and textbox, password label and textbox and a submit button. I want to programmatically autofill this and post it back. I am using the ActiveX IE/Browser object to navigate to the windows page However, I'm unsure of how to post the info back to the server. Any suggestions are...
4
5043
by: Adrian | last post by:
can someone explain the cross domain security re AJAX in IE? I have a page that calls a web service (WS) from another domain (the target browser is only IE6) and displays it's results! all works fine when the page is run from my hdd, however when run from the web I get "Access denied" due to the cross domain security (I assume). So I set...
3
2519
by: aspmonger | last post by:
Hello, I really believe that IE 6 has a new (intentional?) bug that severely limits the capability of dhtml and cross domain scripting. Yesterday, I read an interesting article about the subject and it only supported my claim. The article explained why Microsoft will not be letting the IE DHTML Implementation get any more powerful than it already...
6
8608
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have tried, including my conclusions/assumptions (which i'll happily be corrected on if it solves my problem!): The requirement not to use a proxy means...
5
2534
by: Spam Catcher | last post by:
Hello Everyone, I need to implement single sign on across serveral applications. Some applications are under my control while others are under the control of 3rd parties. Can anyone suggest a good SSO solution? We'll be primarily integrate .NET sites - but Java/PHP/etc are not out of the question either. Our authentication store will...
6
5468
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or suggestions are welcome. --
6
3973
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.