Thanks Randy for helping and give the right direction.
Pankaj

----- Original Message ----- 
From: "Randy Walker" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 16, 2007 12:44 PM
Subject: Re: Trying to Hide URL


>
> Pankaj, There are plenty of tutorials on using AJAX, as that would be a 
> lot
> to cover in a post/email reply. :)  There are libraries that make AJAX 
> easy
> to implement.  I work in Ruby on Rails, and that has the Prototype and
> Scriptaculous javascript libraries built in.  Do a search on those two
> libraries and see if they fit with what you want to accomplish.
>
> Basically, Asynchronous Javascript And Xml allows you to send a request to
> the server and get a response invisibly. ie.no page refresh.  Many times,
> these types of requests will set the href of links to "#" which is fine 
> for
> most regular websites.  On iPhone, having href="#" will cause the address
> bar to drop down.  Setting it instead to href="javascript:void();" will
> provide the same 'dummy click placeholder' service as the "#" but with the
> added benefit of not causing the address bar to make an appearance on 
> every
> click.
>
> -=Randy
>
>
> On 8/16/07 11:00 AM, "Pankaj Verma" <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi Randy,
>>
>> I am new with ajax . If you could explain with example that will be 
>> nice.
>>
>> Thanks
>> Pankaj
>>
>> ----- Original Message -----
>> From: "Randy Walker" <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Sent: Thursday, August 16, 2007 11:27 AM
>> Subject: Re: Trying to Hide URL
>>
>>
>>>
>>> Also, anytime you call up a new page, the address bar will appear unless
>>> you
>>> use AJAX.  If you are using AJAX, make sure your <a href doesn't = "#".
>>> Instead, use href="javascript:void();" and the address bar won't drop
>>> down.
>>> -=Randy
>>>
>>>
>>> On 8/16/07 3:35 AM, "xantus" <[EMAIL PROTECTED]> wrote:
>>>
>>>>
>>>> I think the height of that page isn't long enough to push the address
>>>> bar up. When you use the scroll.  Make the page longer, or use a fixed
>>>> height.
>>>>
>>>> HTH
>>>> David Davis
>>>> http://xantus.org/
>>>>
>>>> On Aug 14, 3:53 pm, PANKAJ <[EMAIL PROTECTED]> wrote:
>>>>> Hi All,
>>>>>
>>>>> I am getting problem with hiding the URL .I have written the below
>>>>> java script code for hiding URL
>>>>>
>>>>> addEventListener("load", function()
>>>>>     {
>>>>>         setTimeout(hideURLbar, 0);
>>>>>     }, false);
>>>>>
>>>>>     function hideURLbar()
>>>>>     {
>>>>>         window.scrollTo(0, 1);
>>>>>     }
>>>>>
>>>>> But the problem with this code is when i am clicking next page the URL
>>>>> bar comes back and  after that hide. I just want to hide as user will
>>>>> login to the application. Thanks for helping
>>>>>
>>>>> PV
>>>>
>>>>
>>>>>
>>>
>>>
>>>
>>>>
>>>
>>>
>>
>>
>> >
>
>
>
> >
>
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to