Hello I'm running aptana studio 2 standalone on os X 10.6 and I've never been able to get a proper jquery auto-complete to work in a PHP project.
Php code completion works. Inside an .html file jQuery and html completes nicely as well. But to my frustration it doesn't complete inside a php file in a php project! And yes I've tried both ...
I save an array value as attribute of element, but I can't get the attribute value as an array, it's string.
How can I get it as an array?
I will add code for this question.
Thanks.
Code:
<table columnArray="">.....</table>
var columns = $('table > thead > tr > *').map(function(){return {left: $(this).position().left, width: $(this)...
Supposing I have some random block of text in a single line. Like so
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
But for whatever reason (width settings on the containing element, use of text-zoom etc.), on the viewer's screen it displays as two or more lines.
Lorem ipsum dolor sit amet,
consectetur adipiscing elit.
or ...
I am trying to embed videos automatically at 700px on Tumblr, but tumblr has a bad habit of controlling embed options, forcing max-500px.
I use a script by matthew buchanan which allows you to customize the embed colors
http://matthewbuchanan.name/post/971857304/better-html5-vimeo-embeds
$(function() {
var color = "55cc55";
$("object[d...
I'm absolutely digging what I've been able to do in jQuery. From my perspective there isn't a lot jQuery can't do.
I'm working on a new project and my plan is to use jQuery heavily with JSON,Ajax and Webservices inside of a ASP.net project.
Before I go spouting my opinion about how great jQuery is, I thought I might ask if there are...
Hi, have a function in jquery to automatically create the tab elements for a product in ecommerce system.
function structureTabs()
{
$('#tabs').prepend('<ul id="tabbtns"></ul>');
$('#tabs h2').each(function(index){
if(index > 0)
{
$(this).before('</div><div id="tabs-'+(index+1)+'">');
}
...
I tried a couple of jQuery plugins for uploading a file. They can be found at:
http://www.phpletter.com/DOWNLOAD/ and http://lagoscript.org/jquery/upload.
I'm sure they work similarly in that they dynamically create an iframe with a form in it and then submit the data. The issue that I'm having is that when my JSON response comes bac...
I'm building an auto-rotating image-carousel with jquery and I'm trying to get the images to rotate infinitely rather than when it reaches the last image, it 'rewinds' back to the first image and starts again. Unfortunately, I'm rather new at the jquery game, so I'm having some trouble getting this to work. I've tried piecing together ...
I have a hidden input #start thats value is used to display a range of returned data (it is the starting point of an index) each time you click #next I need to increase its value.
$("#next").click(function() {
$("#start").val() + 80;
)};
is this correct? or is there a better way?
thx all!
...
Hi, the problem is that the tooltips shows and error in the script (don't know what could it be) in IE7
Can you take a look??
If you need any of the code or something else please ask...
...
i managed to to get this script. It's refreshing the div of the dialog window:
function getRandom() {
$("#category_dialog").load("<?php echo $category; ?>", '', callback);
}
function callback() {
$("#category_dialog").show("fast");
setTimeout("getRandom();", 10000);
}
$(document).ready(getRandom);
everything works fine. di...
Hi Guys.
In my HTML I have the following situation:
<a href='product-enquiry.php?product=SR1'>Enquire about SR1</a>
This then sends a user through to a separate page where the product ID (in this case SR1) is passed into a input field:
<input type='text' value='<?php echo $_GET['product'] ?>'>
I would prefer to use fancybox to bri...
Here is my markup, it's generated from a CMS and I can't do much with this at all.
<div id="wrapper">
<dl>
<dt>
<label>Awesomeness<span class="required"> *</span></label>
</dt>
<dd>Something here</dd>
<dt>
<label>Label Here</label>
</dt>
<dd>Something here</dd>
</dl>
<dl>
<dt>
<label...
is it appropriate to combine all functions that wouldn't conflict into one
$(document).ready(function) {
});
or
$(function() {
});
call to save a couple lines?
...
my statements and code work well, ALTHOUGH if i click in either textfield and don't enter a value the jQuery registers it as "not empty" in the field and does not execute the alert.
What do you think i've missed? or need to add?
I'm working in a Groovy/Grails environment, hence my g: fields.
// if textfield has or has no content show...
Hello,
I'm implementing jQuery in a site and am getting the "$ is not a function" in Firefox when I try to use a selector, but $(document).ready() works perfectly right before it. My code looks like this
<script>
$(document).ready(function(){
alert("hi")
}); // Works fine
function showDiv(){
$("#trad...
if i have
<div id="wallCommentResponse<?php echo $displayWall["id"]; ?>">
test
</div>
And:
$('#wallCommentResponse' + wallID).prepend("lorem ipsum lorem ha!");
I want the prepended stuff come after the text inside it already and not before it..
How can i do this?
...
I know about the attributeContains selector, but how does it apply to style attributes?
I want to find all <a> tags that have their opacity set to 0.
I tried this :
$("a[style*='opacity: 0']")
But it returns nothing.
...
Hi I am trying to retrieve data from the child data of a tag from my ajax script . this works with javascript
coursename = xmlDocument.getElementsByTagName("sitelist");
name = coursename[3].firstChild.data
Can somebody help me with performing this using Jquery please ? I thought this would work but it doesn't
name = $("coursename"...
I can't get this to work for the life of me. The URL concat messes up. The answer doesn't seem obvious...
function(data){
$('#dataDisplay').prepend("<img src='http://url"+data+"moreurl' />").fadeIn("slow");
});
Firebug throws missing end argument errors.
...