Hi,
I'm trying to get my system set-up to learn jquery and I can't even seem to get a simple hello world program to work and I'm not sure why. It seems like it should work fine.
I'm using CI so here is my controller followed by my view. Thanks.
class Java extends Controller{
function index(){
$this->load->view('java_...
Menu of my application has two combo-boxes. I'm using sexy-combo. Items are loaded dynamically. And I'd like to have links to items of the menu because it's very useful for me to get items chosen and related content loaded when I refresh the main page or use a link that is received from someone.
Is it possible to implement?
...
Hi,
I want to implement a Jquery thickbox to show an image that is generated from my database in ASP.Net MVC. My link looks roughly like this:
<a href="<%=Url.Action("ShowPhoto", "Item", new { id = pic.pictureID }) %>" class="thickbox"><img src="<%= Url.Action( "ShowThumbnail", "Item", new { id = pic.pictureID } ) %>" alt="" width="1...
I was advised to used this because i was having a problem, a link worked in FireFox ONLY when clicked the second time. This is to display an external html in a div called leftColumn.
$(function(){
$('#ulWithAllTheLinks').delegate('li a', 'click', function(e){
e.preventDefault;
$('#leftColumn').load(this.href);
});
});
My...
I'm rendering an RSS feed and there is content at the beginning of each content section - it's always 6 characters and I want to use jQuery to remove it.
The content of the particular bit of feed is in a list tag, so <li>blahah Hello this is where I want to display from...</li>
Getting rid of the "blahah" is the goal.
An update:
The ...
i have a form in which if the user enters the search query, its parameter should be passed through jquery and after getting the results it should load the results in the div container. since i'm not very well-versed with jquery, how would i do this?
html:
//currently the data is being displayed on pageload:
$(document).ready(fu...
Possible Duplicate:
Double click needed in firefox (JQUERY)
I was advised to used this because i was having a problem, a link worked in FireFox ONLY when clicked the second time. This is to display an external html in a div called leftColumn.
$(function(){
$('#ulWithAllTheLinks').delegate('li a', 'click', function(e){
e...
I have a page of search results, each of which has an icon to add each result to a group (listed on the page in a hidden UL element: display:none;).
Right now it works... but when I click on the icon for one result listing... the UL appears under every single result.
I need it to only show up for the result listing that I am clicking t...
I'm using jQuery Ajax to post and when success get the data and replace some items that's work good if i add some security to the controller like that
[Authorize]
public ActionResult .........
If the user logged in every thing go OK but when the user not logged or not authorized it should be redirected to the login page
As I'm using...
Is it possible to take my existing css for a mouseover link with a background image, and make it fade in and out? Which is the best approach for a fadein/out? I'm already using jquery.
.sendB {
width: 100%;
height: 125px;
background: #5266EB url('/img/send.gif') no-repeat 50% 0;
margin-top: 22px;
float: left;
}
.s...
The following piece of jQuery is used on a page which has a message at the top, and all the comments which reply to the message below it. The way the code works on IE8/Chrome/Firefox is it "collapses" all of the comments bellow the initial message, so just their subjects appear. Clicking their subjects then substitutes the initial messag...
I'm currently using Jquery to serialize() a form, which contains a textarea, and POST it to Rails.
This works successfully in most cases, unless the textarea contains a line in quotes, on its own. If such a line exists Rails parses the contents between the quotes of that line as the params variable rather than the entire contents of th...
I am trying to loop through all of the links on a page and add them to an array using jquery but I can't seem to get it quite right.
What I have is:
$(document).ready(function() {
var links = new Array();
var link;
for (link in $("a"))
{
links.push(link);
}
alert(links);
});
What I get is an array of numbers (I think one for each...
i have a asp.net FileUpload control and below is the code (which works fine)
if (fUpload.HasFile)
{
string contentType = fUpload.PostedFile.ContentType;
string fileName = fUpload.PostedFile.FileName;
byte[] byteArray = fUpload.FileBytes;
........
}
but i'm thinking of usi...
Hi there.
I am trying to load images from the Facebook graph api into a div on my website.
I have a div for each of the albums on my facebook page, each has the url id in the rel value. I am trying to loop through the graph api urls and load the first image in each json datablock using the code below:
$('.thumbnail').each(function(ind...
<span>
<label for="305">
<input type="checkbox" name="305" style="vertical-align: middle;" value="305" id="305"> Farming General
</label>
</span>
How do I get text "Farming General" using jQuery. Please do not ask me to change HTML structure
...
Hi All,
I'm using the jQuery Plugin jqModal.
New to it, so i'm still learning its usage.
What i'm trying to do is show the popup for say 3 seconds, then automatically close.
Basically, here is the flow of events i want:
My page loads.
Show modal popup saying "Connecting to MySite.."
(after 3 seconds) modal popup automatically cl...
When a page loads an image, does it load it only once, or every time it is found in the markup? and what about jquery, does appending an img cause it to reload again? I ask this because I have a high res image, but need to you use it in many instances on the markup.
<img src="hello.jpg" />
<img src="hello.jpg" />
<img src="hello.jpg" /...
I have a <video> tag with the id of "liveVideo". How do I retrieve the length of the video in seconds?
Thanks,
David!
...
I'll start off by saying I'm new to jQuery but I am really enjoying it. I'm also new to stackoverflow and really loving it!!
The problem:
I've created a sub-form with jQuery so that a user may add, then select this information from a dropdown list if it is not already available. I'm unable to POST this data with .ajax(), so that the u...