How Do You Develop Long Bookmarklets?
Jan 16, 2007
To edit or modify a bookmarklet code, it must be in the form of a multi
line code in a html file or a js file.
But to test or run the bookmarklet, I need to do three things:
1. go to online bookmarklet builder site
2. paste my (multi-line) code there and generate bookmarklet link
3. drag it to toolbar
And I need to go thru these tedious three steps several times because
developing a long bookmarklet (like MyPage) is not like:
write code -test it -done.
but it's like:
write code -test it -it doesn't work. -modify code(put debugging
code) -test it -it still not work -modify code -...
How do you get around with this tediousness? Is there a way to skip the
three steps?
View 1 Replies
ADVERTISEMENT
May 11, 2011
Is their anyway to have a tight loop of code long for a long period of time without freezing the page? I want to be able to do:
for (i=0;i<9999999999;i++){
//some code
if (i%100==0){
yield();
}
}
View 8 Replies
View Related
Mar 18, 2003
Here's a small collection of bookmarklets for disecting your own (or other people's!) websites. They do things like, show all TABLE elements with a red border, hide non-link images, and so on...
View 23 Replies
View Related
Feb 15, 2004
These are a couple little bookmarklets that make testing your pages easier.
This is for adjusting resolution.
<script>
javascript:external.AddFavorite('javascript:void(m=window.open("","m","height=30,width=150"));m.focus();m.document.write('<form><select onchange="opener.eval(this[this.selectedIndex].value)"><option value=""><option value="self.resizeTo(640,480)">640x480<option value="self.resizeTo(800,600)">800x600<option value="self.resizeTo(1024,768)">1024x768</select></form>')','Resize')
</script>
This is for running selected code. You select the code then open the bookmark. (I used it testing this post.)
<script>
javascript:window.external.AddFavorite('javascript:void(window.open("javascript:document.write(opener.document.selection.createRange().text);document.close()"))','Run Code Selected')
</script>
Turn borders on to see table layout.
<script>
javascript:window.external.AddFavorite('javascript:void(t=document.getElementsByTagName("table"));for(i=0;i<t.length;i++){void(t[i].border="1")}','Borders On')
</script>
I use them regularly hope they're usefull to you.
View 8 Replies
View Related
Sep 2, 2010
I am extremely frustrated with my current setup developing jquery as I am in Dreamweaver. I've installed the add ons but they dont help enough. My biggest beef is with something that auto-indents to make the structure of the code legible. That and decent colouring. Can anyone recommend something that does all that and potentially even reloads the page on save....and previews in browser...and debugs?
View 11 Replies
View Related
Dec 14, 2007
Here I am attaching a file.I want develop window like that using javascript can anybody suggest me how to resolve my problem. The table shown in attachment is saved as demo.html.
View 1 Replies
View Related
Jun 17, 2011
I am trying to develop a dashboard for reporting on a large dataset of customers. When it reports on filtered results it works ok but whenever we filter on something that returns a lot of results (ie. customer without email addresses, or a specific customer type ajax returns blank. I have tested the query and apart from taking a while to return, there is nothing wrong with the query.
[Code]...
This just builds the query dynamically based on the results of the above, ignoring any value that equals "NOFILTER".
View 2 Replies
View Related
Jun 2, 2010
I was trying to develop something where on hover of a paragraph the background colour of a div tag that contained all the content changed correspondingly.So the html is something like this:
Code HTML4Strict:
<div id="container">
<p>Change the colour</p>
</div>
I did something simple first where the text colour of the paragraph changed on hover of that paragraph. Now that works completely fine. Here is the code:
Code HTML4Strict:
<!DOCTYPE html>
<html>[code].....
but it does not work .get the latter code working so that the background of the container will change on hover of a paragraph?
View 5 Replies
View Related
Jul 20, 2005
I am trying to create a ( xhtml 1.0 transitional ) page that contains "img" element.
The problem is that "src" would be really long. I have tried and some where along the way, end of the url is cutted down.
Does anyone know how to use POST-method for "img" "src"? Or alternate means for achieving what I am trying to do..
View 2 Replies
View Related
Feb 7, 2011
How do you take a long number such as Math.PI and break it out into an array? code...
I suppose that because of the decimal you would have to convert it into a string first? It would be ideal if I could keep the number as a number without converting it to a string, but I'm not sure if that's possible.
Every thread I've found online so far seems to indicate that you need a delimiter between the string you want to split up - that you can't just put every character of a string into an array... but there must be a way.
View 49 Replies
View Related
Aug 24, 2010
I have a problem with a very long link in a pop up window, when I do the same with a shortest one work fine but with this one does not work. Also I want to know how can I pass parameters to the link, for example: the value of one variable.
<script type="text/javascript">
function newPopup(url) {
popupWindow = window.open(
[code]....
View 4 Replies
View Related
Aug 24, 2009
I don't have this problem in any other web browser. I've googled about and I haven't managed to find anything...
[Code]...
View 2 Replies
View Related
Dec 7, 2006
After a javascript-generated post event (this is a post, not ajax
messaging) the current screen has to be redrawn. But on *long forms*
(longer than a single screen) then the current screen positioning
is lost, and the current form ends up redrawn, with a different
vertical positioning--after the post event.
However, If I sent the x,y mouse position as post parameters,
and if the current widget (that generated the post) had
a well-known anchor tag name, would there be a way
to combine that much information, after the post, in order to redraw
the form close to it's original vertical positioning?
How?
View 6 Replies
View Related
Apr 12, 2010
I've got the following jquery code querying my server, but can't figure out how to Abort the query and reload the page immediately if someone clicks on <a> link. how to abort the current (all) ajax calls if someone clicks on <a> link??
[Code]...
View 2 Replies
View Related
May 20, 2009
I am hiding a login panel like:
$(document).ready(function() {
$("#login").css({marginTop: "-105px"});
});
But in IE 8 it takes very long to hide? I don't like to set it in CSS because if javascript is turned off people can still login as it is visible... is there anyway to make it faster ?
View 3 Replies
View Related
Jun 22, 2011
Using jQuery Mobile, when I turn my phone (iPhone 3) into landscape, the width adjusts correctly and then extends. It's too long. It does this with paragraphs as well as lists. Even the [URL] site does this :)
How can I override the width? Is there any way to test iPhone 4? Any of you have one to test the [URL] site in landscape view?
View 1 Replies
View Related
Feb 16, 2010
in my code below, I need to change the linemap.setCenter(new GLatLng(i[0], i[1]), 13); to have the LAT and LONG from my database therefore, I think maybe I need to open a database connection (which I think i am on the same page) and put some ASP in my JavaScript?!
[Code]...
View 1 Replies
View Related
May 31, 2010
I am using jQuery to set a cookie and the expiration date is:
date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
which lasts for 1 day, but I would like the cookie to not expire for a long time, is this possible? I know google has one that like expires in 2035 or something but I would like this on to last long. What should I do?
View 4 Replies
View Related
Mar 6, 2006
I want to start out by entering an investment amount as well as an interest amount. Then I want to find out how many years it would take to become a millionaire, using each cycle through a looping statement as one year. What would be the best way to do this?
View 13 Replies
View Related
Jul 17, 2011
m tryig to display titles of more than one word of scrolling images when hover on the images. But there is a problem in my code. It shows only the first word when hover the images. e.g the images title is "My first image" then it will display only 'My' as the title. Is there any option to fix this problem using the javascript.
View 3 Replies
View Related
Oct 18, 2009
My dropdown menu on my site is too long for my browser window. My submenus are hidden, but cause my page to extend well beyond my footer and I can't figure out how to fix it. Is it my javascript or html code?
View 4 Replies
View Related
Sep 27, 2005
I am making a webpage with two dropdown menus.
First I have a dropdown menu with a list of 235 countries. When one
country is selected from this list the contents of the next dropdown
menu is decided from a coresponding file containing a huge amount of
cities. The biggest of these files being 6 MB.
Getting different advices I have now to different sets of code doing
this thing. Does anyone know if any of these two sets of code is
suitable for what I want? Code:
View 4 Replies
View Related
Oct 22, 2007
I wonder to show the images in a table format... and to set a box of
width 100px and height 100px, is there a way?
Right now, if I set width to 100px, then height can be 180px...
If I set height to 100px, then width can be 260px...
What I really want is, to have the greatest width and greatest height
so long as none of them exceed 100px, and maintaining the aspect
ratio. (I don't want to set both width and height to 100px for the
aspect ratio will be weird...)
so powerful as HTML and CSS is, is the above possible?
So it might be possible to use Javascript... but what about for users
who have javascript turned off? and because I am loading the jpg
files in one .php, and posting to another .php file and setting the
HTML in the second file... so getting the width and height info in the
first page and passing it to the second .php can be kind of messy.
View 9 Replies
View Related
Jun 25, 2009
I am trying to send with getJSON a very long string as parameter: $.getJSON("/ajax.php",{id:myid, thetext:mytext},myAjaxResult)where "mytext" - is value from my fckeditor.If "mytext" value is not so long, everything is going fine, but if it become a very long, getJSON doesn't work. How can I solve this question?
View 3 Replies
View Related
Jun 7, 2011
I developed a dropdown menu using Spry (Adobe Dreamweaver). It is a vertical menu with multiple sub-menus.Some lists are very long and the menu goes below and off the page.I found a great example of what I want my menu to do: Coins Paper Money | eBayOn the side, it says "Browse By:" and there is a vertical menu. If I shrink the page up vertically a little and watch the sub-menus pop out, I notice they get pushed up if the parent is close to the bottom of the screen, which ensures that none of the options go off the page, they get pushed up.
View 4 Replies
View Related
Apr 26, 2007
String must be minimum 6 charcters long and can only contain A-Z, a-z and 0-9 ....
View 2 Replies
View Related