Hi,
i have an ebook(relatively large size say 800 pages),in HTML format. I am opening that book as webpage using webkit-gtk+. If i load the whole book at a time,it takes too much memory(RAM ).So i dont want to load the whole book at a time, but load the part of the book which is currently on display. and when the user scrolls down, next part should be displayed.How can i implement that ?
On my site a number of operations can take a long time to complete.
When I know a page will take a while to load, I would like to display a progress indicator while the page is loading.
Ideally I would like to say something along the lines of:
$("#dialog").show("progress.php");
and have that overlay on top of the page that is being loaded (disappearing after the operation is completed).
Coding the progress bar and displaying progress is not an issue, the issue is getting a progress indicator to pop up WHILE the page is being loaded. I have been trying to use JQuery's dialogs for this but they only appear after the page is already loaded.
This has to be a common problem but I am not familiar enough with JavaScript to know the best way to do this.
Here's simple example to illustrate the problem. The code below fails to display the dialog box before the 20 second pause is up. I have tried in Chrome and Firefox.
In fact I don't even see the "Please Wait..." text.
Here's the code I am using:
<html>
<head>
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.dialog.js"></script>
</head>
<body>
<div id="please-wait">My Dialog</div>
<script type="text/javascript">
$("#please-wait").dialog();
</script>
<?php
flush();
echo "Waiting...";
sleep(20);
?>
</body>
</html>
After reading this post on Stackoverflow
Google plus popup box when hovering over thumbnail? I was inspirted to add it on my site.
I managed to do so and the script adds the contacts to my database. So far awesome!
However, my problem (and also appears in the example) is it does not display the "checked" value... so the user will never know if they already added them to their list or not.
Is the correct way to display checked values with PHP?
Here is my html code:
<ul style="list-style: none;padding:2px;">
<li style="padding:5px 2px;">
<input type="checkbox" id="Friends" name="circles" value="Friends" '.$checked1.'/>
Friends
</li>
<li style="padding:5px 2px;">
<input type="checkbox" id="Following" name="circles" value="Following" '.$checked2.'/>Following
</li>
<li style="padding:5px 2px;">
<input type="checkbox" id="Family" name="circles" value="Family" '.$checked3.'/>
Family
</li>
<li style="padding:5px 2px;">
<input type="checkbox" id="Acquaintances" name="circles" value="Acquaintances" '.$checked4.'/>
Acquaintances
</li>
</ul>
And my PHP code is:
if($circle_check_friends>0) {
$ckecked1='checked=""';
} else if ($circle_check_following>0) {
$ckecked2='checked=""';
} else if ($circle_check_family>0) {
$ckecked3='checked=""';
} else if ($circle_check_acquaintances>0) {
$ckecked4='checked=""';
} else if ($circle_check_friends=0) {
$ckecked1='';
} else if ($circle_check_following=0) {
$ckecked2='';
} else if ($circle_check_family=0) {
$ckecked3='';
} else if ($circle_check_acquaintances=0) {
$ckecked4='';
}
Im lost because this is not giving me the result I want... i.e. for the checked values to be displayed according to the users choice.
Your help is highly appreciated
Thank you all in advance
George
Hi everybody,
I have a display problem when I try to use a ajax combobox inside a tab control:
when my tab control loads on the page where the combobox is, everything works fine; however, if it loads on a another page, the you change to the page which contains the combobox, the right button (which opens the list of the combobox) isn't displayed at all.
Has someone been through this behavior? And maybe found a solution ?
Thanks in advance !
Hi,
I have a situation where I need to hide columns of the report when viewing but when printing or downloading as a file, those hidden columns need to be displayed. Hiding the columns is not an issue, its just that I cannot figure a way to display the hidden columns when printing/downloading.
I do not want to create 2 separate reports for this.
Thanks
How can you speed up the display of WinForms in C#?
I am finding that forms are being painted quite slowly, even if the window is being 'reactivated' (ie. switched to) after having been already loaded.
Other languages seem to be render forms a lot quicker.
Is there a way to speed things up? Using C# in VS2005.
hi,
i'm reading some blogs on blogspot.com and i was wondering:
is it possible to change a blog's url that it will display ALL posts?
i mean that it will show all blog entries without having to click "older posts" over + over again.
thx
I have an application that calls ShellExecute with a folder path. This brings up the folder in explorer.
However, I want to make sure that the folders are set to display the contents in thumbnail view. How can I ensure this?
I want to display a progress bar (or loading icon) while a image gallery is loading on django template.
Image gallery is having a div in the template and for that div only the progress bar should appear.
Please refer to http://www.openstudio.fr/jquery/ as I am using this gallery
I have been pulling my hair out for the past 3 hours!!
Does anybody have any idea on how to show posts in wordpress that have at least one comment?
The below code uses orderby=comment_count and it does work, but it still display other posts that have no comments too :(
<?php $home_loop= new WP_Query("cat=-182,-183&showposts=10&paged=$paged&orderby=comment_count&order=DESC"); ?>
I currently developing a website, where i allow the users to upload an image and display it on the same page the moment it gets uploaded fully. How can I do this. I am developing the site on asp.net (C# & webforms).
I have a Gnome applet I've been working on. It is written in Python and it displays the progress of something in a small label.
My question is: what is the best way to display status notifications to the user? On Ubuntu, I notice that whenever I connect to a network or adjust the volume, a black box appears in the upper-right corner. Is there a way to do something like that with Python?
Is there a way of updating the Option Set options for the Marketing List Member Type to reflect an entity display name change? i.e. if the account entity has been renamed to organisation, is there a supported way of reflecting this in the displayed options? I have been able to achieve this using javascript, but wondered if there was a better way of achieving this? At the moment I am unable to change the descriptions of the current options: Account, Contact or Lead.
I'm totally new on this so I want to start with something simple.
I have just an object in my Visio document and I want to display a Hello World! message whenever it's clicked.
Hi Everybody
I wanted to parse the xml feed and display as links in my Blackberry application.
After googling it, i found out that i have to use SAX parser. I have not found any good example.
For example if i want to parse the news rss feed from bbc.co.uk. How to do it. How to extract images from rss feed.
Please Help, Advise, and Guide me.
SIA
Thanks
Can anyone guide me as to how to create a table using Objective C for Mac OS X. The program should read values from an NSArray object and display the values in the table. I would appreciate it if anyone helped me out.
I have emacs v23.1.1 on ubuntu 9.10. i can't seem to make speedbar to display all files, it only displays directories. Does anyone have an idea with this?
I use asp.net page and in that page use validation. How to show Message in balloon
Exp: User Name___
IT use only alpha bate a-z or A-Z
display Message using balloon like "Please enter valid char only"
I don't get it and I can't find it by myself. How to display (and update) a route between two locations (for example, current device location and destination) in Android application using Google Maps API?
I heard once that this could be done using Curl, but I don't want to display all contents from an external site on my site, but only the contents from a particular div. How can this be done?
How can I localize bundle display name of an iPhone app?
The name displayed in iPhone main screen under app icon.
I wish a single binary bundle package which will be displayed multilingually.
I want display the content of doc file in a textarea for my project using PHP as it is means line break, font size etc.
Any code or how to do it. And i will be fetching that doc file from database.