473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Related Multi-Selects, iframes, ajax, other?

I have several related multi-selects on a page (country, state/
province, city, address). There are 4 - 7 other unrelated fields on
the page also. Even though this is an intranet app where a
traditional submit is normally very fast, there are other user/design
considerations which make submitting the entire page not as desirable.

I am just looking for some verification that an iframe returning an
array would be fine. I have not worked with Ajax, but would consider
it if there were significant advantages (I think you can stop a
request). I am also worried about using onchange with multi-selects,
additional requests could be firing before results are returned.

Feb 19 '07 #1
2 1337
On Feb 18, 8:29 pm, "johkar" <nosendj...@msn.comwrote:
I have several related multi-selects on a page (country, state/
province, city, address). There are 4 - 7 other unrelated fields on
the page also. Even though this is an intranet app where a
traditional submit is normally very fast, there are other user/design
considerations which make submitting the entire page not as desirable.

I am just looking for some verification that an iframe returning an
array would be fine. I have not worked with Ajax, but would consider
it if there were significant advantages (I think you can stop a
request). I am also worried about using onchange with multi-selects,
additional requests could be firing before results are returned.
Although both techniques (iframe and XHLHttpRequest, aka XHR, aka
Ajax) are used for asynchronous requests (and therefore could both be
called Ajax), pretty much the only circumstance under which iframes
are advantageous to XHR is for file uploads, which is impossible with
current XHR implementations and security restrictions. The amount of
code generally required to set up and use XHR is smaller, and you have
more fine-grained control of the request process. Also, iframe Ajax
is considered a "hack" and involves DOM scripting, while XHR was
created specifically for this purpose. Learn both techniques, write
code to try them out, then come back if you're having problems.

-David

Feb 19 '07 #2
David Golightly wrote:
<snip>
... pretty much the only circumstance under which iframes
are advantageous to XHR is for file uploads, which is impossible
with current XHR implementations and security restrictions.
<snip>

That is not really true. It should be entirely possible to assemble the
body of a multipart post request contain appropriately encode data that
would be taken as an uploaded file when received at the server. So you
could create a 'file' in memory and upload it to a server. The impossible
part is getting a file from the user's hard disk and putting its contents
into a javascript string, under the normal security constraints.

Richard.

Feb 19 '07 #3

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

Similar topics

37
by: ajikoe | last post by:
Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours,...
4
by: Frank Jona | last post by:
Intellisense with C# and a multi-file assembly is not working. With VB.NET it is working. Is there a fix availible? We're using VisualStudio 2003 Regards Frank
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
5
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a...
5
by: dkelly925 | last post by:
Is there a way to add an If Statement to the following code so if data in a field equals "x" it will launch one report and if it equals "y" it would open another report. Anyone know how to modify...
7
by: Louis B. (ldb) | last post by:
I have a long running program that eventually crashes when valloc() returns a 0. This program is relatively non-trivial as it's written in Ada, is multithreaded, has alot of SSE routines. A memory...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
0
by: Sabri.Pllana | last post by:
We apologize if you receive multiple copies of this call for papers. *********************************************************************** 2008 International Workshop on Multi-Core Computing...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
4
by: =?Utf-8?B?SGVucmlrIFNjaG1pZA==?= | last post by:
Hi, consider the attached code. Serializing the multi-dimensional array takes about 36s vs. 0.36s for the single-dimensional array. Initializing the multi-dimensional array takes about 4s...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.