[WSG] the image is not showing in IE7
Hi Folks! I just tried to open a popup window. And, dynamically i embed an image in the popup window. The image is not showing up in IE browsers. But it's being seen in FireFox. the code looks like below: -- win=window.open('','','width=200,height=100'); win.document.write("Loading..."); -- Any help on this would be much appreciated! :) Thanks! Venkatesan M *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Need to access parent content from iframe
i tried with window.domain, it's not working. 2011/4/5 Elankeeran / இளங்கீரன் V > if both the page are in different domain and if your owning both page then > you can add below line in the top of your both page > > window.domain="yourdomainname"; > > > > On Tue, Apr 5, 2011 at 4:09 PM, Mahendran Venkatesan < > venkatesan.mahend...@gmail.com> wrote: > >> >> yes! >> >> >> 2011/4/5 Elankeeran / இளங்கீரன் V >> >>> its your iframe url and parent window in same window? >>> >>> On Tue, Apr 5, 2011 at 3:34 PM, Mahendran Venkatesan < >>> venkatesan.mahend...@gmail.com> wrote: >>> >>>> >>>> In my website, I have a requirement where iframe js should access the >>>> form fields of parent window. I tried with "window.parent.document.forms", >>>> but it is not working. >>>> >>>> >>>> Is there any possibility to access the parent window content from iframe >>>> js? >>>> >>>> p.s. The iframe and parent window are different domain. The js file >>>> resides in iframe. >>>> >>>> Thanks! >>>> Venkatesan M >>>> >>>> >>>> *** >>>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >>>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >>>> Help: memberh...@webstandardsgroup.org >>>> *** >>>> >>> >>> >>> *** >>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >>> Help: memberh...@webstandardsgroup.org >>> *** >>> >> >> >> *** >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: memberh...@webstandardsgroup.org >> *** >> > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > *** > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Need to access parent content from iframe
hi David, Thanks for sharing! I thought the policy is applicable only for accessing the content from parent window to iframe. So, the access permission in both ways is not possible. Regards, Venkatesan M On Tue, Apr 5, 2011 at 4:04 PM, David Dorward wrote: > On 5 Apr 2011, at 10:52, Mahendran Venkatesan wrote: > > In my website, I have a requirement like the iframe js should access the > form fields of parent window. I tried with "window.parent.document.forms", > but it is not working. > > > Is there any possibility to access the parent window content from iframe > js? > > p.s. The iframe and parent window are different domain. The js file resides > in iframe. > > > No. https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript > > -- > David Dorward > http://dorward.me.uk > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > *** > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Need to access parent content from iframe
yes! 2011/4/5 Elankeeran / இளங்கீரன் V > its your iframe url and parent window in same window? > > On Tue, Apr 5, 2011 at 3:34 PM, Mahendran Venkatesan < > venkatesan.mahend...@gmail.com> wrote: > >> >> In my website, I have a requirement where iframe js should access the form >> fields of parent window. I tried with "window.parent.document.forms", but it >> is not working. >> >> >> Is there any possibility to access the parent window content from iframe >> js? >> >> p.s. The iframe and parent window are different domain. The js file >> resides in iframe. >> >> Thanks! >> Venkatesan M >> >> >> *** >> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm >> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm >> Help: memberh...@webstandardsgroup.org >> *** >> > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > *** > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] Need to access parent content from iframe
In my website, I have a requirement where iframe js should access the form fields of parent window. I tried with "window.parent.document.forms", but it is not working. Is there any possibility to access the parent window content from iframe js? p.s. The iframe and parent window are different domain. The js file resides in iframe. Thanks! Venkatesan M *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] Need to access parent content from iframe
Hi, In my website, I have a requirement like the iframe js should access the form fields of parent window. I tried with "window.parent.document.forms", but it is not working. Is there any possibility to access the parent window content from iframe js? p.s. The iframe and parent window are different domain. The js file resides in iframe. Thanks! Venkatesan M *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] Another Question about JavaScript.
Try with the following code: function proc() { var num = document.heartSearch.hsQty.value*8.95; document.hSearchoutput.hsTotal.value = r2(num); addMe(); } function prc2() { var num = document.youKnow.cutSandHours.value*12.17; document.outme.soter.value = r2(num); addMe(); } function addMe(){ var x = document.hSearchoutput.hsTotal.value; var y = document.outme.soter.value; var num = parseFloat(x)+parseFloat(y); document.costAndTtl.TtlCost.value = r2(num); } function r2(n) { ans = n * 1000; ans = Math.round(ans /10) + ""; while (ans.length < 3) {ans = "0" + ans;} len = ans.length; ans = ans.substring(0,len-2) + "." + ans.substring(len-2,len); return ans; } Regards, Venkatesan M On Fri, Nov 14, 2008 at 2:42 AM, Brett Patterson < [EMAIL PROTECTED]> wrote: > I hate to ask another question about JavaScript, but I need help with ONE > more thing, please? > > *Using the following JS code in XHTML Transitional:* > function proc() > { > var num = document.heartSearch.hsQty.value*8.95; > document.hSearchoutput.hsTotal.value = r2(num); > } > > function prc2() > { > var num = document.youKnow.cutSandHours.value*12.17; > document.outme.soter.value = r2(num); > } > > function r2(n) > { > ans = n * 1000; > ans = Math.round(ans /10) + ""; > while (ans.length < 3) {ans = "0" + ans;} > len = ans.length; > ans = ans.substring(0,len-2) + "." + ans.substring(len-2,len); > return ans; > } > > *and the following HTML code in XHTML Transitional:* > > > > 0 > 3 > > > > > > > > > > > > 1 > 5 > 6 > > > > > > > > > > > > > > How would I get the last form to show the SUM of both the id="hsTotal" and > the id="soter" text fields? > > -- > Brett P. > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Image links
* **img a *{ text-decoration : none; } Is there any chance 'img' can be a parent of 'anchor' tag? I suggest the following: a.someclassname{text-decoration:none;} OR a{text-decoration:none;} Thanks! Venkatesan M On Fri, May 2, 2008 at 3:44 AM, Mike at Green-Beast.com < [EMAIL PROTECTED]> wrote: > Hi Dean, > > When you set up an anchor rule that has an underline on hover meant for > > text, is there a simple way to prevent the underline on image > > > > This should work for you: > > img a { > text-decoration : none; > } > > Cheers. > Mike Cherim > > > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > *** > > *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Validating Flash
Hi Tim, Already we had some discussion related to this. Please refer the mails with heading "*The correct way of placing a swf file into a XHTML webpage*". Here, you can find some information. Thanks! Venkatesan M On Thu, Mar 27, 2008 at 11:07 AM, Tim MacKay <[EMAIL PROTECTED]> wrote: > Hi List, > > > > My question is about embedding Flash on html pages (just certain elements > – not talking about full flash sites). I always get errors from HTML Tidy > and the validator about the object and embed tags, which wrecks my validated > markup. What is the standards-compliant way to embed Flash elements so that > my site validates and stops throwing errors? > > > > Thanks, > > Tim > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Why is deprecated?
The presentational elements such as , , and are deprecated as because it can be achieved by CSS. For example, can be achieved by *"text-decoration: underline*;". I think, and have been left for *screen readers* to understand the emphasize part. Thanks! Venkatesan M On Thu, Mar 27, 2008 at 9:58 AM, Kepler Gelotte < [EMAIL PROTECTED]> wrote: > Hi, > > I am just curious if anyone can explain why the tag has been > deprecated > while and are still allowed. > > Thanks in advance. > > Best regards, > Kepler Gelotte > Neighbor Webmaster, Inc. > 156 Normandy Dr., Piscataway, NJ 08854 > www.neighborwebmaster.com > phone/fax: (732) 302-0904 > > > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] The correct way of placing a swf file into a XHTML webpage
Hi Dory, You can use '*object*' tag for embedding flash files. Refer this link: http://www.alistapart.com/articles/flashsatay Thanks! Venkatesan M On 3/25/08, Dory <[EMAIL PROTECTED]> wrote: > > Hello, > > I am currently working on a site that has a small flash file for > decorative purposes. I inherited the site and want to make it web standards > compliant. The problem: the XHTML code in the site is using the embed tag > for the flash. Is there a way to place swf files into a XHTML webpage that > will allow the page to validate? (I believe the embed tag has been > deprecated.) > > Any links to references would be appreciated. > > Thank you, > Dory Ptak > > *** > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***