I've using the JQuery Address Plugin (http://www.asual.com/jquery/address/) to make my JQuery UI Tabs bookmarkable and compliant with the browser forward/back buttons. Works great.
I was wondering if it was possible to do provide the same sort of deep linking for nested tabs? E.g., I have the following:
<div id="tabs">
<ul class="...
Hello. Please see the the following http://valogiannis.com/recent/ .I have a webpage and when user click XHTML code a div with id result loads the contents of a webpage (in this case codes/advocasys.html). In fact what I wish to do is to highlight the html code. I have link the necessary css/js. I use the SyntaxHighlighter 3.0.83. This ...
For reasons which are somewhat unavoidable (lots of legacy code, compatibility, design needs) I have the following problem: I have two tables, one directly below the other, but split between two frames (see the pseudo-example below my sig.). I need the column widths of these tables to synchronize exactly so that these two tables 'act...
I've been unable to find information about the timing of loading Flash and JavaScript. I have a page that includes a JavaScript file and has a Flash SWF:
<script src="stuff.js"></script>
...
<object ...><embed ...>
...
<script>
// some code
</script>
The SWF calls a function defined in the JavaScript.
Is it possible for the SWF to l...
I am looking at some existing code in a web application. I saw this:
window.setTimeout(function () { ... })
Is this the same as just executing the function content right away?
...
Hello all, I am trying to create a SIMPLE plugin, no interface is necessary, that will automatically download and save to "Desktop/MyFolder/" everything that the page loads. My thought was to make an extension that extends FireBug, but that seems to be rather challenging. I got it to do some things, however on things like images, flv's...
Hi,
I am wanting to create a custom history entity that will hold inactive records from another entity but am wanting to achieve this on 3 different entities.
Is it possible to create an entity that say may have a iFrame which will show the entity and just display the view of only inactive records?
Or do you know a better way to achie...
Is there an equivalent for ruby's array[n..m] in Javascript ?
For example:
>> a = ['a','b','c','d','e','f','g']
>> a[0..2]
=> ['a','b','c']
Thanks
...
I've a script block in HTML which basically has some JSON content. I would like to replace contents inside it using jQuery. I did something like this:
$("#data").html(newjson);
Above statement only works with Firefox. It does not work with IE? How do I make this work in IE.
...
I am using this probably ugly javascript to show a text box (in a li tag plus its label) if a checkbox is checked.
$("#li-2-21").css("display","none");
$("#Languages-spoken-and-understood-8").click(function(){
if ($("#Languages-spoken-and-understood-8").is(":checked"))
{
$("#li-2-21").show("fast");
}
else
...
I open an ajax modal window with jQuery. How can I update the DOM and make the new elements available for jQuery to use?
...
I've looked for some help on the reddit site itself, but I still can't quite figure it out, so I've reposted here. I've also searched this forum but I haven't found a close enough answer and don't know enough about programming to extrapolate from what I have found.
I'm certainly not much of a programmer; this seems possible but I can't ...
I have a javascript function create(tagName, options) and the options variable is a JSON object. like this:
{id: 'test_id', class: 'test_class'}
I would like to know how to get the 'id/class' part of the json object. Hope you can help!
...
<script type="text/javascript">
$(document).ready(function() {
//select all the a tag with name equal to modal
$('a[rel=popup]').click(function(e) {
//Cancel the link behavior
e.preventDefault();
//Get the A tag
var id = $(this...
I'm working on a website where users can create and save their own HTML forms. Instead of inserting form elements and ids one by one in the database I was thinking to use js (preferably jquery) to just get the form's HTML (in code source format) and insert it in a text row via mysql.
For example I have a form in a div
<div class="new_...
I'm trying to replace all instances of a word, say "foo" between some HTML tags.
<span id=foo> blah blah foo blah foo blah </span>
I want to replace all instances of foo that are not in the tag with bar, so the end result is:
<span id=foo> blah blah bar blah bar blah </span>
Notice that "foo" in the span tag has not been replaced....
Is there a difference between me using Javascript to redirect to URL + "?Querystring=value" versus using whatever mechanism ASP.NET uses?
If there is a difference, how can I make the rendered ASP.NET page be submitted to the same URL with a different query string by javascript?
...
I understand there is a method send for xmlHttpRequest objects, but I've been working on this site all day and I'm unable to find any halfway decent tutorials on the subject and my brain feels like mush. Ajax is hard.
What I'm trying to do is send data from one Javascript file back to a PHP script on the server, where the data is simply...
I was thinking javascript_include_tag with :cache option would g-zip the combined javascript file automatically:
<%= javascript_include_tag 'j1.js', 'j2.js', 'j3.js', :cache => 'js_all' %>
But it just generate a file which simply combined all those javascript files in plain text mod;
Then how to g-zip the combinded file automatica...
I am trying to study the jquery class, but I have a hard time debugging an object because I can't see the element inside of it
$("#birds").autocomplete({
source: "search.php",
select: function(event, ui) {
alert(ui);
}
});
it returns [object Object].. :( My question is how can I...