I am getting a reference to a DOM element from a WYSIWYG Editor.
I don't understand JS nor the WYSIWYG Editor (CKEditor) that deeply yet, but it somehow seems to be a pointer or other direct reference to the actual element that resides in an IFRAME within the WYSIWYG editor. At least, when I console.log the element, I get a link that, w...
Hey
I am having a bit of trouble combining the HOVER and FOCUS events with jquery. This is what I had originally:
$("input,textarea").focus(function () {
$(this).parent().siblings('div.exp').removeClass('hide');
$(this).parent().siblings('div.exp').addClass('show');
});
$("input,textarea").blur(function (){
$(this).par...
I'm trying to pass two parameters to a JavaScript function.
Unfortunately this give me error.
Here is the function
function load(do,div)
{
var do;
var div;
document.getElementById('spinner').innerHTML = '<img src=\'/images/spinner.gif\'>';
$('#'+div).load('rpc.php?'+do,
function()
...
How can I create a div dynamically within a function, like this:
<div id="mydiv" class="notice" style="display:none;">
</div>
It would be very nice if I could create it also with jquery library.
...
Hi I have a div with content like this
<div><strong>some content
....</strong></div>
How can I add another element to the div after <strong>, how to add <span> element after <strong> ?
Thank you
...
I'm working on a project that will be using a lot of select menus to enter various data. I'd like to include an 'other' option directly in the select that will trigger a simple dialog and allow users to enter a custom value (where appropriate) similar to the following javascript code:
<script type="text/javascript" language="javascript"...
How I will do that:
When seconds come 31 (example 11:57 31sec.) do somthing, every minute. Using Javasript.
Thanks in advance.
...
I have an image selector that allows to choose an image from a gallery, then fills in the URL into a <input type="text"> field. The URLs can be awfully long, and always seeing the first half of the URL in the text field has very little informational value.
Does somebody know a way to "scroll" to the very right of the text field so that ...
Hi,
I have a jquery dialog modal box pop up for logging into my website. When a user clicks login it does a post request to a login.php file as follows:
$.post(
'includes/login.php',
{ user: username, pass: password },
onLogin,
'json' );
How do I do an md5 on that password before putting it in the post req...
I have a DOM element that in Firebug clearly shows a float: left property.
But when I process it in the DOM, element.style.float returns undefined.
Am I just overlooking something on my end (this is what I'm assuming right now) or is there a special way to address float? I would be baffled if there were.
...
I'm making a project which uses HTML elements as nodes in a diagram and uses Raphaël to draw lines between them. The problem is that the lines always wind up underneath the HTML elements. I have tried
raphael.canvas.style.zIndex = 1000;
(which is larger than all my other z-indexes) and also tried placing the SVG canvas as the last ele...
how do i remove a previous element to the triggering one with jquery?
i have tried:
$(this).prev().remove();
$(this).next().remove();
but nothing works!
...
I wanna generate Hyperlink based on query string .Let me explain it more
Topics clicked rite now:(here I want my hyperlinks)....,....
1.Cat1
2.Cat2
3.Cat3
when i click cat1 it generate querystring: ?Cat=Cat1
when I click on cat2 it will generate querystring ?Cat=Cat2
so based on that I want to create hyperlink whose
text is query ...
Hi
I don't know what is going on but this is really evident in IE 8. It loads up my page and my javascript files.
I then have debug lines in my server side code that should get activated when an ajax request from my jquery comes through. Or some other contact with the server such a refreshing the page.
So I have this
var timeout;
va...
Ok, first off, I applogize if this question has been asked before, I've spent the last 12 hours sifting through hundreds of forum threads and haven't found one that answers this question exactly yet so here goes.
I have a page that I built that has a userlist that is autopopulated as users log in, and each users has a checkbox that allo...
I edited my question
What is a vendor specific extension?
A vendor specific extensions can start
with a “-” (dash) or a “_”
(underscore), usually followed by an
abbreviation of the company or the
browser project the extension is
specific for, f.i. “-moz-” for Mozilla
browsers, or “-webkit-” for WebKit
based browser...
I want to make something like - (See under "Applications You May Like")
http://www.facebook.com/apps/directory.php
When you click on right button - you get a sliding appearance of applications moving. How do you do it ? Any reference ?
...
How to style iframed page's content using parent pages css ? I don't have access of iframed page?
i made thisfor example - http://jsbin.com/uxobe
how to style differently HTML of the page which i'm using in iframe?
Is therey a way to style like this through css or js+css ?
http://siteurl { background:red}
...
I am creating a Chat application in php.
AIM:
when a user1 invites user2, user2 want to get a alert or popup message that user1 has invites him.
What i have done is -
When user1 invites, the message is stored in database. In user side i used to check whether
Database is updated or not. If database is update i used to show alert. Thi...
My .php code in a file "fetchvalues.php" looks like this:
echo json_encode(array($PostedDate.Places.$Company.$Designation.$ProjectDetails.$DesiredCandidate.$HRName.$HRContact.$Email));
This file is called by another file and the calling function looks like:
$(document).ready(function(){
$("#Edit").click(function(){
$.getJSON(...