×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    How to open using auto click href link?

    Hi

    Using following code related to auto click on href link, I am able to open link only one time (open only first time).

    How to open more than one link?

    Able to open first link do not open 2nd link.

    Code:
    HTML
    --------
        <body onload="init()">
        	 <a href="http://..." id="thisLink" name="thisLink">here</a></br>
             <a href="http://..." id="thisLink1" name="thisLink1">here1</a>
    </body>
    
    JAVASCRIPT
    ----------
    function init() {
    
    	var elm=document.getElementById('thisLink');
            document.location.href = elm.href;
    
            updateTimerId = setInterval(updateURLTimerFunc, 10000);
    }
    
    function updateURLTimerFunc()
    {   
    	var elm=document.getElementById('thisLink1');
            document.location.href = elm.href;
    }
    Please help me in this query.

    Regards,
    SymbianTH

  2. #2
    Registered User
    Join Date
    Sep 2008
    Location
    Manaus, Brazil
    Posts
    109

    Exclamation Re: How to open using auto click href link?

    When you click on the first link, your app is closed and the browser starts run. So, you can't use this approach. It will probably work if you use widget.openURL(url);
    Javier Zambrano Ferreira

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: How to open using auto click href link?

    If you want to use onclick event handler of a -element please remember to cancel the default action.
    Otherwise the page is scrolled back to start.
    http://wiki.forum.nokia.com/index.ph...in_Browser_7.1

    -Ilkka

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: How to open using auto click href link?

    Hi

    If I try to open following way using iFrame than it works in emulator (means open web page in frame) and if I deploy widget and run in nokia E71 device than do not open in iFrame but open out of iFrame.

    How i can solve this problem please help me.

    Code:
    <html>
        <head>
            <title></title>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <script type="text/javascript" src="WRTKit/WRTKit.js"></script>
            <script type="text/javascript" src="FeedUpdateBroker.js"></script>
            <script type="text/javascript" src="RSSReader.js"></script>
            <style type="text/css">
                @import url("RSSReader.css");
            </style>
            <META NAME="Generator" CONTENT="Nokia WRT plug-in for Aptana Studio 1.0.0.36" />
    		
        </head>
        <body>
       <iframe id="uFrame" src="http://wap.delmy.com/?id=cellmaxin">
        	
        </iframe>
        </body>
    </html>
    Regards,
    SymbianTH

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: How to open using auto click href link?

    Hi

    Please help me in widget's html page tag query.

    How to open "http://wap.delmy.com/?id=cellmaxin" link in <iframe> tag?

    Please Please help me.

    Regards,
    SymbianTH

Similar Threads

  1. Getting Open C++ to work with carbide
    By monoceres in forum Open C/C++
    Replies: 6
    Last Post: 2009-09-08, 18:23
  2. Replies: 35
    Last Post: 2009-04-11, 14:36
  3. Parsing file content
    By hendrawan.ashari in forum Symbian
    Replies: 7
    Last Post: 2007-03-09, 10:41
  4. Debugging Symbian S60 with Carbide C++ Express and NCF 1.2 Bluetooth
    By jimgilmour1 in forum Bluetooth Technology
    Replies: 4
    Last Post: 2006-09-05, 19:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×