I have a DIV Called fArea and when i click the open button it's sets fo=2
but the code still refreshs so i tryed to add if and else and now it is not displying anything.
jQuery Code:
function unique_requestid() {
var timestamp = Number(new Date()).toString();
var random = Math.random() * (Math.random() * 100000 * Math.random() ...
It seems like there should be, but I've looked over the API and nada. I don't see how it's done in 2.x. Currently, I store references with the elements to the tab and tabview objects via jQuery's data method.
The why: When I interact with the tabs via mouseovers and clicks, I need to be able to reference the YUI tab/tabview objects' pr...
I know this is a probable open ended question, and I have tried looking around so much over the last year or two... maybe I am looking for a perfect place that doesn't exist! of course it's all about perception no less..
Anyway, just to clarify what I am trying to do and why:
I want to be able to use (primarily for the moment) ASP.NE...
Hello everybody
I have a little problem
I am trying to use MartkItUp JQuery rich text editor on JSF textarea component.
MY form looks pretty much like this:
<h:form id="comment">
<h:inputTextarea id="commentBody" cols="10" rows="10" value="#{postComment.commentBody}" required="true" requiredMessage="Comment Body i...
I am creating a web app that will be used to create invoices and quotes. Currently, I am tediously creating all the controls at design time resulting in controls like the following:
txtQty1, txtDescription1, txtUnitPrice1, txtItemCode1. Then for the next line, I just repeat the controls, but add a 2 to the end of the Id. This goes on...
What is the best and quickest way to resize images on the client side using JavaScript?
EDIT: Sorry, I meant the best way to display an image resized on the client side..
...
I'm after a way to keep a top level menu item on it's hovered or active state when I'm hovering on that menu items sub menu.
An example can be found here: http://marketplace.prettypollution.com
- Hover over 'News' menu item (BG will be dark) then navigate to the Sub Menu to appears - 'News' item will change back to it's normal state.
...
Hello everyone.
I am currently working on my portfolio website which uses a very simple navigation.
However what I want to do is have the drop shadow beneath the type become stronger (read: higher opacity/ darker) when the type is being hovered on.
Right now my code looks as follows and does not generate any errors but simply does not ...
Hi,
I want to use an inner div to drag around an outer div, for example:
<div id="outerDiv" style="height:300px; width:200px;">
<div id="innerDiv" style="height:10px; width:200px;"></div>
</div>
If this is my code, assuming the proper JQuery plugins are attached to use draggable, etc... How can I make it so that when the user cl...
I have a code which accept a query and uses yahoo websearch to return a suggestion.Its working fine in FF and Chrome . but in IE it gives no result. can any one help me on this??
Here is the code:
$(document).ready(function() {
$.ajax({
type: 'GET',
url: "dummyapi.php",
data: {query: "yaho"},
success: function(xml) {
alert...
Hey, how can I say the following
Foreach tag in my table, when someone clicks it I want to run a function
so something like:
ForEachTag.click
(
function (e)
{
}
)
...
Hi,
In my app i m using JQuery..In tat I m using tat Ajax GEt to retrive values from cakephp controller viewforms ....But if i alert myObject..It doesnt came..
It show me the error as
missing ) in parenthetical
{"attributes":[{"type":"Text","labels":"Untitled1"}]})
where
{"attributes":[{"type":"Text","labels":"Untitled1"}]}) ...
Hello,
How do I check if browser supports position:fixed using jQuery. I assume I have to use $.support I think, but how?
Thank you for your time.
...
This is in relation to the jQuery plugin "scrollTo" from this here:
link text
The plugin works fine except when you want to use it with a newly created DOM element. Is there any method to using this plugin with DOM elements that are created after the page has loaded (from other user interaction). This would be similar in application ...
Hello All,
I'm new to Jquery and am running into an issue when trying to put my JQuery scripts into a separate file in my project folder. I'm working with a plug-in called Corner. Here is the relevant part of the HTML file
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" s...
I have a jQuery wrapped element which I would like to append to a html row. I can't wrap my head around this, since append() seemingly accepts strings but not existing jQuery elements (I might be mistaken here).
I have a following setup:
var row='<tr><td>data1</td><td>data2</td><td>';
var img=$('<img src="path/to/img.png"');
img.click(m...
is there a neat way to add html with jQuery instead of
$("#elm").html($("#elm").html() + "some text");
It'd be great to just do $("#elm").html(+= "some text") or something similar...
...
Hi,
I'm not a good programmer and I just started using jQuery. I need a table sorter that can expand and collapse rows. My code is below. I've spent lots of time trying to improve its execution time. In IE it takes lots of time. I'd appreciate your suggestions.
$(document).ready(function() {
$('table.sortable').each(function() {
...
Consider this:
var i=$('<img src="/path/to/imgI.png"/>');
var j=$('<img src="/path/to/imgJ.png"/>');
$([i,j]).css('cursor','hand');
The cursor is not changed however and I don't know why..
When I do it separately, it works.
Thanks.
...
hi.
I've seen on StackOverflow and googling around that the most used way to get the selected text from a <SELECT> element with jquery is like this
$("#cboId :selected").text()
what I have is not the id, but an object. I have an object, say
var myCombo= $("#cboId");
coming from an earlier piece of code.
I've done like this to get ...