jquery,jquery-ui,tabs,indexRelated issues-Collection of common programming errors
MPD
7 jquery admin-theme
I have installed jQuery Update but it breaks some core functionality that makes the admin UI a struggle to deal with. Is there a way to keep jQuery Update enabled but disable it when the admin theme is visible?
Jamal
jquery plugin twitter
I’ve been working on a jQuery plugin for pulling tweets since the v1 endpoints were all closed off and you need oAuth now. This is just the jQuery part but if you want to see the php behind it I’ll be happy to post. But basically, I’d love suggestions, as this is one of the first real plugins i’ve made, i’m really looking for critique on patterns and efficiency. Is there anything I’m doing that can be shorten’d significantly? Is there a feature you think would be cool for me to include?And just
Jamal
javascript jquery datetime plugin twitter
I’ve built a Twitter plugin recently and was wondering if I could get some feedback on it. There is also a PHP side that grabs the actual tweets and I can post that code if it’s needed.http://jsfiddle.net/cKfDd/;(function ( $, window, document, undefined ) { /************************************* Plugin Functions *************************************/ /*************************************/ Plugin.prototype.init = function () {var params = [ ‘?user=’ + this.options.user,’&limit=’
laxman
php jquery ajax wordpress woocommerce
I am getting catchable fatal error in bellissima themeforest woocommerce theme.http://www.pursesgalore.com.au/ can anyone help on this?Code:if(!$dst_h) ://can’t resize, so return original url$img_url = $url;$dst_w = $orig_w;$dst_h = $orig_h;————————–line number 1040 ———————–else ://else check if cache existsif(file_exists($destfilename) && getimagesize($destfilename)) {$img_url = “{$upload_url}{$dst_rel_path}-{$suffix}.{$ext}”;} Error: Catchable fatal erro
Fran Verona
php javascript jquery ajax
I have a PHP file with the following code:<html><head><!– HEAD –><?php require_once ‘Language.php’; ?></head><body><script type=”text/javascript”>$.get(‘step2.php’,function(data){// Do something});</script></body> </html>As you can see, I’m trying to load some content via Ajax call. The problem is that step2.php contains some PHP code:<div class=”step-content table-bordered”><h3><?php echo $Lang->get(‘create_s2_title
Tom
jquery ajax joomla joomla2.5
Still having problems figuring out how to use Ajax and the Joomla framework together. I’ve created a Joomla component which I can access with:index.php?option=com_mycomponentI’m using Jquery with Ajax in components/com_mycomponent/views/mycomponent/tmpl/default.php:<?php // No direct access to this file defined(‘_JEXEC’) or die(‘Restricted access’); ?> <html> <head><title>Ajax with jQuery Example</title><script language=”javascript” type=”text/javascript” src=”ht
Asenar
javascript php jquery callback
i have make an php editor with so much effort but i cant print the fatal error. and want to print the fatal error. How to do this. I have code for run the php through eval function here is my jsfiddle – **http://jsfiddle.net/3c7F6/3/** I want to print an fatal error. Please help me to do this.please check the code and give me the suggestion
Ulker Ibrahimova
javascript jquery file-get-contents
This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://
Mitesh Vora
jquery html css ellipsis
I tried looking here Insert ellipsis (…) into HTML tag if content too wide but could not get in chrome to work. I there solution for multiline in all browsers??
Ronald Yeung
javascript jquery ajax json cors
What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.
lokisapocalypse
jquery jquery-ui accordion sortable
This is my first time posting so please let me know if I fail to provide enough details. I have a page that contains multiple accordions. I wanted to use multiple accordions because I wanted users to be able to have multiple sections open at once which is not native to accordion. I also want users to be able to sort those accordions. The way the page is currently set up, users can sort the accordion with no problems. When the user goes to sort the accordions, I have a script that will close all
Akke
javascript jquery jquery-ui dialog callback
I’m writing some form validation functions, and I’ve decided to go with jQueryUI for prompting the user because of flexibility.There is a slight problem tho. I want my functions to return an array which consists of a boolean and a string for my error reporting system. JQueryUI dialogs are asynchronous which means the browser won’t hang and wait for a return value as the native prompt() would.Here is some sample code:Validator function:function verifyTOS_PVM_v2() {verifyTOS_PVM_v2_callback = ”;i
Richard Neil Ilagan
jquery jquery-ui position
jQuery has a native .position() function right out of the box which gets positioning values of an element relative to its location on the page.jQuery UI extends that same function to allow modification of positioning of elements.How do I check if the jQuery UI version of .position() is loaded in a page?Sadly, it isn’t just a matter of checking whether jQuery UI is loaded on a page or not, since the .position() plugin extension is not part of the jQuery UI Core libraries, which means someone some
UrbanPlanet
jquery jquery-ui autocomplete asp.net-mvc-4
List itemI am looking at the JQUERY example on the http://jsfiddle.net/g4stL/212/ link in Jsfiddle website. I am very impressed by the feature. Infact we have to implement the exact same feature on our application.If I copy the code as it is, I am able to see the multicolumn autocomplete. However the selection part does not work. If I select using mouse cursor or using Arrow keys the program fails. The error I get is “htmlfile: Unexpected call to method or property access.”In the append function
Mark Richman
asp.net jquery jquery-ui dialog confirm
I have a TemplateField in a GridView in an UpdatePanel with a button called btnDelete. Rather than the standard OnClientClick=”return confirm(‘Are you sure?’)” I’d like to use jQuery Dialog.So far, I’m able to set the jQuery using btnDelete.Attributes[“onclick”] and setting the jQuery Dialog code in the code-behind. However, it posts back to the server in all cases before I have a chance to click “Confirm” or “Cancel”. Here is the HTML it produces:<input type=”submit” rel=”Are you sure?” clas
Iznogood
jquery jquery-ui jquery-ui-accordion
I have a very simple accordion in my webpage that I initialise with :$(document).ready(function() {$(‘#accordion’).accordion({‘autoheight’:true,’header’: ‘img’});});And later I:<div id=”accordion”><img src=”/public/images/btn_avant.gif” alt=”” /><div><ul><li><a href=”/”>link</a></li><li><a href=”/”>link</a></li></ul></div><img src=”/public/images/btn_pendant.gif” alt=”” /><div>du contenu</div>&l
alex.mo.07
javascript jquery html jquery-ui this
I’m working on what I thought would be a simple chunk of code, trying to dynamically (using ‘this’) animate div blocks to scale (zoom) to the size of the parent container (section tag) on click.My HTML:<section><div id=”project”></div><div id=”project”></div><div id=”project”></div><div id=”project”></div><div id=”project”></div><div id=”project”></div></section>My JavaScript:$(“#project”).click(function() {$(thi
James Montagne
javascript jquery-ui
see the underlying code.function displayProductsByCategory(a){$.getJSON(‘json/newjson.json’, function(data) {$(“#Product_Display_Div”).empty();$(“#Product_Display_Div”).append(‘<h1>’+a.id+'</h1>’);$.each(data[a.id], function(key, item) {//alert(“key :”+item.productPrice+”value :”+item.productName);$(“#Product_Display_Div”).append(‘<ul class=”columns”><li> <h3>’+item.productName+'</h3><img src=”‘+item.ProductImageURL+'” width=”150″ height=”150″ /><p>
Andrew Whitaker
jquery-ui autocomplete jquery-ui-autocomplete
I’m using jQuery UI’s Autocomplete slightly differently than it was probably created to do.Basically I want to keep all the same functionality, the only difference is that when the suggestion box appears, I don’t the suggestion box to hide when a user makes a selection and I also don’t want that selection to populate the input box that .autocomplete is attached to.So, I’ve been reading through the jQuery UI documentation, and it appears there is a way to disable the Select: and Close: events, bu
revaxarts
jquery jquery-ui jquery-ui-sortable
I’m trying to load some html in an iframe and make certain elements in that html page sortable:jsfiddleJS:var _iframe = $(‘iframe’); var containment = _iframe.contents().find( “modules” ); if(containment.data(‘sortable’)) containment.sortable(‘destroy’);containment.sortable({stop: function (event, ui) {console.log(‘STOP: I am never called’);},start: function (event, ui) {console.log(‘START: I am called with a delay!’);},containment: containment,placeholder: “sortable-placeholder”,items: “> mo
leppie
android tabs wifi scan galaxy
I am at the beginning stage on developing an application, which needs scan the wifi APs per second. The scannin part works well on one HTC hero, however, it takes 6 seconds for my galaxy tab to finish one scan. I write a very simple program, scanning wifi continously and note down how long it takes for one scan. (from wifi.startScan() to receiver get results). In HTC phone, it’s 500 ms, but in Samsung tab, it takes 6s on average. I wonder if anyone can help me to solve this problem. Is it becau
Eddie
java android android-fragments tabs
I have an Activity, which has 2 text fields and a button; when the button is clicked the text in the text fields are uploaded to sql remote server.it works fine.Now i want to create a swipe/tab view. i have done that,and till this it is fine. Now i want the above activity to be shown under this swipe view,in one of the tab. The GUI is fine . but when i click the button to upload, it shows the error.following is the code,which works when it is a separate activity: AddComment.javapackage overskov.
eggdeng
java android tabs android-actionbar
A week later, I am still trying without success to create a tabbed action bar with v7 support to be able to switch between fragments. This is my first effort at an android app in native code and I am new to Java.My Main.Activity.java looks like thispackage com.example.appcompattest;import android.os.Bundle; import android.app.Activity; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; import android.view.Menu; import android.support.v7.app.ActionBar; impo
Juan José Torres Díaz
android facebook tabs scrollable inflate
I am developing an Android application with navigation “Scrollable tabs + Swipe” using the Facebook API. Now, when I try to call the class UserSettingsFragment facebook API and inflate for incorporation into a TAB I get an error that I can not solve.This is the code:public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {int fragment_seleccionado =getArguments().getInt(ARG_SECTION_NUMBER);switch (fragment_seleccionado){case 1:View View1 = inflater.inflat
Karanveer Singh Sodhi
tabs window titanium titanium-mobile photo-gallery
I am using titanium to make a small app where i can click on a ‘gallery’ button located in a window and it opens photogallery. On selecting the photo it should move to next window. But what it does is, it closes the photogallery first, after that i can see my first(button) screen and then it opens the next window. I dont want it to show the previous window. Is there a way to do it??I am adding windows to tabs . Below is my code .cameraButton.addEventListener(‘click’,function(e){chooseImageFromGa
Gabriel Theron
jquery css tabs
I’m using jQuery tabs for an interface. I’d like my main div (the tab overlay) to take the pages’ dimensions. For the moment, it is working for the overlay, but the tabs’ length is automatic, and is as small as the content allows it (nothing unusual or unexpected).So in a nutshell, my question is : how do I make the tabs take exactly the right dimensions? I’ve tried making them larger but they seems to force the overlay to get bigger, even though they do not reach the bottom of the page.Edit : c
darnpunk
php session tabs
I’ve done a booking application done using CakePHP which involves a few steps before the checkout page. In between these steps I store the information in the session. How it works is that Step 1 requires them to fill in their information. When going to Step 2, the information in Step 1 will be saved into the session object. As they proceed in the other steps, the process repeats. At the end when they checkout, all the data is then saved to the database.Everything works great if the user opens on
Karunagara Pandi
selenium hyperlink tabs ide
I’m using Selenium IDE 2.4.0 version for testing our web application. In a scenario, when I click on the link from the web page, it opens a new tab. There I’ll be performing some action such as entering data and saving the action etc.My problem is, Selenium IDE recording the hyperlink but it does not open the new tab and it is displaying the following error message in the Log.[warn] Link has target ‘_blank’, which is not supported in Selenium! Randomizing target to be: selenium_blank64967 [error
kranthi
jquery dynamic tabs
I have an aspx page on which I have 2 static jquery tabs.Upon clicking on a button avaiable on one of these tabs,I would like to add a new tab dynamically,which gets its content loaded from another aspx page.I’ve also tried with the following samplehttp://jquery-ui.googlecode.com/svn/trunk/demos/tabs/manipulation.htmlI’ve downloaded jquery-ui-1.8rc3.custom zip file and tried to add the above page with the relevant script,css files to my asp.net website and run,but it does not seem to work.Also I
William Niu
ajax jquery-ui tabs jquery-ui-tabs
When the caching remains disabled (i.e. cache: false), how can I prevent the tab from loading the remote content again? Essentially, I would like to select a tab but not load it.
user1744034
java windows arrays index
Sorry if this is answered somewhere due to me missing something obvious, but I’ve been googling this for days now and it just doesn’t seem to make any sense. I’ve got 3 years of experience in Javascript and am getting into Java now, so I’m not behind on the basic concepts of anything and such.I’m using IntelliJ for this, but it fails to point out the problem. The communication (access rights and instantiations) between my classes is fine, the code syntax and variable types are as well, etc, so I
Brad
excel vba index match vlookup
I have an excel formula that I use often that does a VLookup. It has an embedded Index/Match that gives the last numeric value in the “M” Column. The Worksheet formula is this:=VLOOKUP(INDEX($M$10:$M75,MATCH(9.99999999999999E+307,$M$10:$M75)),Data,4)Cell $M75 being the cell of the row this formula is in. There are numeric, non-numeric and blank cells in Column M but the ID’s that I want are always numeric.So I am trying to write a custom function that would let me simply write =current()Here i
Gray
mysql index ormlite
I have a simple class like this : @DatabaseTable(tableName = “VlpTag”) public class VlpTag implements Serializable {private static final long serialVersionUID = -4912974444196844860L;@DatabaseField(generatedId = true)private int id;@DatabaseField(foreign = true, columnName = “buid”, canBeNull = false, foreignAutoCreate = true, foreignAutoRefresh = true)private VlpVirtualApp vApp;@DatabaseFieldprivate long lastUpdated;@DatabaseField(index=true)private String tagValue;@DatabaseField(dataType = Dat
damingzi
java deployment index opengrok
I am trying to implement OpenGrok to search some source tree. There was no error when running “./OpenGrok deploy”, but afterwards when I ran “./OpenGrok index”, there jumped lots of similar errors which I will attached below. The full source tree I want to search is a very hug project, around 20G big, and the weird thing is that, I can successfully run “./OpenGrok index” if the source code is a small size one. So I am not sure is there any file number limit or size limit that OpenGrok follows, i
user2390534
java spring mongodb index
we are using Spring-Data-Mongo to access our MongoDB from a Java application. In general everything works fine but I encountered one odd behavior.When initializing our Repositories in the Java code we use ensureIndex to create indices on the collections. In a unit test we read all indices from the collections as IndexInfo objects and check if those IndexInfo objects contain the fields we want to index in the member indexFields. This also worked fine when we set everything up.Now it happened that
chilltemp
c# collections dictionary index
When is it acceptable for an indexer to automatically add items to a collection/dictionary? Is this reasonable, or contrary to best practices?public class I { /* snip */ } public class D : Dictionary<string, I> {public I this[string name]{get{I item;if (!this.TryGetValue(name, out item)){item = new I();this.Add(name, item);}return item;}} }Sample of how this may be used in a collection:public class I {public I(string name) {/* snip */}public string Name { get; private set; }/* snip */ }
Jonathan Tizard
php multidimensional-array index dynamic-values
I want to pass a function the index value of an array – e.g [‘client_name’] – a first level value works because I can do$index = client_name;function arraything ($index) { return $this->arraytolookat[$index]; }The question is. how do I do this, if it’s a multi nested array?I tried the eval statement and apparently it doesn’t evaluate brackets well . So I tried this.$index = “[0][‘client_name’]”;Eval(“$this->arraytolookat$index”);But it just fails. winges about a unexpected [ – any Ideas?ED
eggyal
mysql index group-by
I have an issue in one of mySql query. Issue is not reproducible on any of our local machines. I have a simple querySELECT ID FROM TABLE_NAME WHERE ID IN (15920,15921) GROUP BY ID returns result – ID 15920Which is unexpected result since there is data for both the ids in database.Using explain command returned the following result for this query +—-+————-+————+——-+——————–+——————–+———+—–+——+—————————————+
egrunin
mysql join index
Let’s say we have a common join like the one below:EXPLAIN SELECT * FROM visited_links vl JOIN device_tracker dt ON ( dt.Client_id = vl.Client_id AND dt.Device_id = vl.Device_id ) GROUP BY dt.idif we execute an explain, it says:id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE vl index NULL vl_id 273 NULL 1977 Using index; Using temporary; Using
Haradzieniec
mysql indexing index innodb
I’m curious how long will it take to put an index on the column in the db, that is not empty and has about 100,000 rows. I understand, it depends, but does it take a 0.1 second, 1 second or 10 minutes? Should I stop any actions from users during the indexing of a column in the db?The reason I ask is I don’t know what columns should be indexed (to get an answer, I should measure it on practice, when the table grows), because the table is almost empty and the project is not uploaded.Thank you.
Web site is in building