Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Remove History in android using phonegap

How to delete histroy in android using javascript + html ?

actually i have a list of item .when i select one name from list second time it size is big (white in color )and due to caching. i want to remove caching when this page is load.

 

Thanks

 

New Developer
Posts: 108
Registered: ‎01-23-2012
My Device: torch,bold,curve,strom
My Carrier: Blackberry

Re: Remove History in android using phonegap

I think this code will help you:

{
var Backlen=history.length; history.go(-Backlen); 
window.location.href=page url
}

 Or you can get the information from This link:

http://www.codeproject.com/Questions/273309/How-to-Clear-the-Browser-History-using-JavaScript

Thanks & Regards,
Kumar Shivam
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Remove History in android using phonegap

what should  in wite in 

page url..??
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Remove History in android using phonegap

window.location.href=index.html

is it correct..?
New Developer
Posts: 108
Registered: ‎01-23-2012
My Device: torch,bold,curve,strom
My Carrier: Blackberry

Re: Remove History in android using phonegap

Yes i think this is correct just check once!

Thanks & Regards,
Kumar Shivam
New Developer
Posts: 108
Registered: ‎01-23-2012
My Device: torch,bold,curve,strom
My Carrier: Blackberry

Re: Remove History in android using phonegap

If you get the solution then feel free to  accept as solution and like it!

 

Thanks & Regards,
Kumar Shivam
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Remove History in android using phonegap

how to set height of table different for different device..?
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Remove History in android using phonegap

<script type="text/javascript">
function GetStationCodes()
{

var Backlen=history.length; history.go(-Backlen);
window.location.href=index.html;
}
</script>

<body onload="GetStationCodes()">
</body>


i write this but its not working ..can you do some change
Trusted Contributor
Posts: 166
Registered: ‎12-09-2011
My Device: 9550,9300,9800,9700,9900,9850,9860

Re: Remove History in android using phonegap

[ Edited ]

You have already posted this question in another Thread and i have given you the condition for how to check different resolution.

Why are you posting the same question many times???

Here is the link:
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Get-click-event-of-row/m-p/18795... 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Developer
Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Re: Remove History in android using phonegap

i got it recently i am not getting write thing sir actually