Hello !
How do i assign tabindex to an object (listbox) that is generated dynamically inside an Iframe. I used the following code onload event of body, but it didnt work. Any suggestions would be appreciated. - parent.document.getElementById("CitiesFrame").contentWindow.document.getElementById("city").tabindex='1';
Thanks & regards,
Hashmi
11 5601 acoder 16,027
Recognized Expert Moderator MVP
Remember JavaScript is case-sensitive. It's tabIndex, not tabindex. See link.
Remember JavaScript is case-sensitive. It's tabIndex, not tabindex. See link.
Hi ..
thanks for the reply... I tried the way you suggested .. also tried by enabling the Iframe which i had disabled earlier.. but still it didnt work...
acoder 16,027
Recognized Expert Moderator MVP
Show your iframe code.
- <iframe id="CitiesFrame" name="CitiesFrame" height="23" width="190" scrolling="no" frameborder="0" disabled=true></iframe>
i also tried by removing disabled attribute...
acoder 16,027
Recognized Expert Moderator MVP
Where are you calling the code?
Can you also show the listbox code?
Where are you calling the code?
Can you also show the listbox code?
Hi acoder !
here is the code for the list box: -
<script type="text/javascript" language="JavaScript" src="../Globals.js"></script>
-
<script type="text/javascript" language="JavaScript" src="../PassCity.js"></script>
-
<script type="text/javascript" language="JavaScript" src="../ZoomHilite.js"></script>
-
<body style='margin-left:0px'>
-
<select id='city' OnChange='setmap(this.value);' style='width:190px; font-family:tahoma; font-size:8pt; position:absolute;top=0px'>
-
<Option Value=''> Select...</Option>
-
<Option Value='abha'>Abha</Option>
-
<Option Value='damam'>Ad Dammam</Option>
-
<Option Value='diriayah'>Ad Diriyah</Option>
-
<Option Value='dahran'>Adh Dhahran</Option>
-
...list goes on...
-
</Select></body>
The above list box is called in the Iframe as follows: - parent.document.getElementById("CitiesFrame").src="Citiesearch.aspx?lang=" + langext;
Thanks!
acoder 16,027
Recognized Expert Moderator MVP
Where you have code starting with "parent.", where exactly is this called from?
Where you have code starting with "parent.", where exactly is this called from?
There is a main page ie. index_E.htm which hosts the Iframe. There are 3 Iframes in my page. js function is called on pageload event that sends parameters to an aspx page; it retruns a populated listbox in the Iframe.
Please check this link.... Saudi Locator ... you have to be patient with the download speed of the site..
thanks & regards
Hash
acoder 16,027
Recognized Expert Moderator MVP
If the select element is the only thing inside the iframe, I don't think the tabindex is going to work the way you want it to. Are you trying to set the tabindexes for all items on the main page?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Peter Jenkins |
last post by:
I needed to implement a "page within a page" and rather than use frames
(yecchh)
decided to try using the object tag. Flung a test page together, tried it
out in IE
and Firefox on my PC, it worked perfectly (apart from the right hand
scrollbar
in IE). Picked up the page to be inserted (
http://sms.connexus.co.nz/sst/default.asp)
and displayed it exactly as I hoped in both browsers. Great!
|
by: mike |
last post by:
I have this script executing
<script>
function mike_test(event)
{
x = window.event.clientX;
alert(x);
}
</script>
<iframe src="blank.html" id="my_iframe1">
</iframe>
|
by: tilt |
last post by:
Hello,
I use an object element to replace the iframe element in ie, like this:
<object
id="x_obj"
data="http://.../"
type="text/html">
<iframe name="x_if" id="x_if" src="http://.../">
|
by: Venkatesh |
last post by:
Hello All,
I have an iframe in my main html and within iframe, I'm loading another
HTML webpage. In my main html page, I've captured the mouse click
event, by setting the "onclick" for <bodyof main page.
The code is like this:
<body onclick="handleClickEvent(event)">
....
|
by: stephen.cunliffe |
last post by:
Hi all,
There's been a bunch of chatter recently about using the Object tag,
vs. the Iframe tag.
I couldn't care less which one is used, I just want to be able to load
a "page" inside another "page", (same or different domain) and it has
to work in all browsers(*).
By work, it means I have to be able to have an anchor in my parent
| |
by: diver |
last post by:
I was using an <iframe> to load a website within my .aspx page. When the user "logged out", I called a javascript break out function to breakout of the frame and load the appropriate page when logging out. This worked perfectly on my end, but the website being loaded in the iframe was not functioning properly because it was being loaded within a frame. I then tried using the <object> to load the website within my .aspx page, and the website...
|
by: bnashenas1984 |
last post by:
Hi everyone
I'v seen several websites doing what I'm asking now but I don't know how they do it.
Lets say we have an E-commerce website that has a shopping cart inside an IFrame which shows what products have been added.
Users should be able to add comments for each product inside the shopping cart (in the Iframe) .
When the user clicks on the product a new popup window opens which allows him to add the comment and then save.
But...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |