I need to get an image's dimensions in javascript (jQuery) when no styles are specified for it (jQuery's css() returns 0).
Maybe it is because I'm loading the image with jQuery just before asking for its dimensions. If this is the case, is there any event to listen that tells when the image has been loaded?
...
Hi,
I'm trying to get the hang of jQuery and I had this simple bit of code that refuses to work. Anyone got an idea of why this might not be working?
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("div").live("click", divclicked);
...
I have a script that uses $(document).ready, but doesn't use anything else from jQuery. I'd like to lighten it up by removing the jquery dependency.
How can I implement that functionality without it? It does more than window.onload.
...
I think that my Suckerfish drop-down navigation does not play well with flash. I've done everything I can think of, yet my drop-down navigation keeps displaying underneath my flash movie. If I replace the movie with an image, it displays just fine. Only when I use a flash movie does the navigation display underneath the flash movie. I ha...
I'm trying to make it so that a form submit doesn't cause the page to navigate and use ajaxSubmit to submit the content. however when I click the submit button, it still navigates to the page in the action attribute of the form. Heres the javascript:
var options = {
success: processLogin
};
$('#loginform').submit(function() {
$(...
In most languages like C# for example given a string you can test (boolean) if that string contains another string, basically a subset of that string.
string x = test2;
if(x.contains("test"))
// do something
How can I do this in a simple way with Javascript/Jquery?
...
MSXML6 is supposed to have the best security, performance, reliability, and W3C conformance (Using the right version of MSXML in Internet Explorer).
Questions:
Why does not jQuery use MSXML6?
Does jQuery use MSXML3? (I think the answer is yes, see my update below...)
Can i fetch the version of MSXML from an IXMLDOMDocument instance? ...
I am looking for a component to allow the user to upload and crop an image, resize it and save it in .PNG (or .JPG) format (if it is in a different format).
What is the best solution?
...
Hello,
I am returning a List<> from a webservice as a List of JSON objects. I am trying to use a for loop to iterate through the list and grab the values out of the properties. This is a sample of the returning JSON:
{"d":[{"__type":"FluentWeb.DTO.EmployeeOrder",
"EmployeeName":"Janet Leverling",
"EmployeeTitle":"Sales Representative...
Can anyone please tell me the XML structure for sub-items that jqgrid uses. I've read the documentation and it does not explain clearly how one would create a tree view with sub-items in it. Basically I have a 2 column grid with 3 levels.
...
I am trying to do a simple jQuery tutorial, but it won't work.
<html>
<head>
<title></title>
<script type="text/javascript" src="jquery-1.3.2.js">
$(function() {
$('a').click(function() {
...
I have an input field which when the enter key is pressed (as there is no submit field) I would like javascript to add the @ character infront of each keyword when the form is submitted.
For example:
The text would be entered as...
home, personal, call
But the value that is submitted would be...
@home, @personal, @call
So far I hav...
Hey,
I've been trying to use the new jquery-ui, and all but the resizable function seem to work. The handles don't seem to appear anywhere. Can anyone figure out why?
http://victor.hwanger.com/test.html
...
Hi,
I have been trying to enable jquery UI module and have been unable to to do. I realised that the documentation is crappy but even following the community from
http://drupal.org/node/434424
doesnot seem to work. Any pointers???
...
I'm using jQuery 1.3.2.
I'm having trouble getting a correct "height" in Internet Explorer 6. Height values are correct in all other browsers.
I am also using wresize jQuery plugin.
Each time the browser loads, I fire a method that resizes divs, iframes based upon browser dimensions. (There's a good reason for this.)
The returned v...
Hi,
I need to add zoom to an image which is displayed in a dialog.
However, I am not having any luck with either Magiczoom, or JQZoom.
Has anyone come across this before?
Thanks,
Natasha
...
In my blog application, some posts appear as excerpts -- i.e., the user sees the first (say) 500 characters, and can click a link to view the entire post. Here is the relevant partial:
<% href = url_for post_path(:id => post) %>
<h1 class="title"><%= post.title %></h1>
<h2 class="published_on"><%= post.author %> wrote this <%= time_ago...
I've got a few DIV tags with different amounts of text content.
HTML:
<div id="boxes">
<div id="boxone">
<p>...</p>
</div>
<div id="boxtwo">
<p>...</p>
</div>
<div id="boxthree">
<p>...</p>
</div>
<div id="boxfour">
<p>...</p>
</div>
</div>
They're in a two-by-two layout...
I am working on a project now where I have links in a sidebar and links in the tabbed sections. Some of the links need to open up ajax content in other tabs then the one that is currently selected. Is there a way to tell a particular tab to load some ajax content?
Thanks
I can load ajax content using jquery into arbitrary divs. Howe...
I want to make a long list short by hiding some elements in long sub-lists without adding extra processing on the server side. The problem is that the markup that comes from the server is not controlled by me and is not designed in a way to make my job easy. here is the code
<ul id="long-list">
<li class="item"></li>
<li class="item...