473,808 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to assign tabindex to an object inside Iframe???

55 New Member
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.

Expand|Select|Wrap|Line Numbers
  1. parent.document.getElementById("CitiesFrame").contentWindow.document.getElementById("city").tabindex='1';
Thanks & regards,
Hashmi
Dec 3 '07 #1
11 5601
acoder
16,027 Recognized Expert Moderator MVP
Remember JavaScript is case-sensitive. It's tabIndex, not tabindex. See link.
Dec 3 '07 #2
hash4sp
55 New Member
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...
Dec 3 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Show your iframe code.
Dec 3 '07 #4
hash4sp
55 New Member
Show your iframe code.

Expand|Select|Wrap|Line Numbers
  1. <iframe id="CitiesFrame" name="CitiesFrame" height="23" width="190" scrolling="no" frameborder="0" disabled=true></iframe>
i also tried by removing disabled attribute...
Dec 3 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
Where are you calling the code?

Can you also show the listbox code?
Dec 3 '07 #6
hash4sp
55 New Member
Where are you calling the code?

Can you also show the listbox code?
Hi acoder !

here is the code for the list box:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" language="JavaScript" src="../Globals.js"></script>
  2. <script type="text/javascript" language="JavaScript" src="../PassCity.js"></script>
  3. <script type="text/javascript" language="JavaScript" src="../ZoomHilite.js"></script>
  4. <body   style='margin-left:0px'>
  5. <select id='city' OnChange='setmap(this.value);' style='width:190px; font-family:tahoma; font-size:8pt; position:absolute;top=0px'>
  6. <Option Value=''> Select...</Option>
  7. <Option Value='abha'>Abha</Option>
  8. <Option Value='damam'>Ad Dammam</Option>
  9. <Option Value='diriayah'>Ad Diriyah</Option>
  10. <Option Value='dahran'>Adh Dhahran</Option>
  11. ...list goes on...
  12. </Select></body>
The above list box is called in the Iframe as follows:
Expand|Select|Wrap|Line Numbers
  1. parent.document.getElementById("CitiesFrame").src="Citiesearch.aspx?lang="  + langext; 
Thanks!
Dec 4 '07 #7
acoder
16,027 Recognized Expert Moderator MVP
Where you have code starting with "parent.", where exactly is this called from?
Dec 4 '07 #8
hash4sp
55 New Member
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
Dec 5 '07 #9
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?
Dec 5 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

9
1952
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!
9
6845
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>
1
6192
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://.../">
4
25143
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)"> ....
4
19821
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
0
2003
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...
1
2956
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...
0
10631
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10374
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
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,...
0
10114
tracyyun
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...
0
9196
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
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...
0
6880
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();...
1
4331
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
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.