Jquery add validation function
I have an JS code validation like this : if (theForm.chk_ccd.checked && (! theForm.ccd_pos [0].checked) && (! theForm.ccd_pos [1].checked) && …
ASP.NET MVC - Propagate a server side event to the client
In my ASP.NET MVC app, the user clicks a button on the UI to make a phone call. An ajax request goes to the MVC app, which calls a phone dialer -- a method in library that calls an external component …
Changing the Date Format in Jquery
In javascript, I'm gettiong the DateTime as 1/05/2013 20:00 (d/mm/yyyy HH:MM) But I want the datetime in this format 01/05/2013 20:00 (dd/mm/yyyy HH:MM)
Transmitting database information from php to javascript - mysql_fetch_array not acting as expected
I apologise if someone is aware of an available answer to my question, however after a week of looking on the web and trialling stuff I thought I would ask the experts. Aim: Query an SQL database via …
Why does my query fail when I don't wrap my table and columns with the ` character?
Hopefully, some old sage can shed some light on this one. I'm baffled (easily). When I prepare my SQL statement as such (using ` on the table and column names, which isn't shown on the output ...
How to use the bootstrap's scrollspy function with a non bootstrap navbar
this is my first website without a CMS and I am little lost with jQuery. I'm just trying to activate the elements of my fixed navbar depending on the position where the user is. I am building my site …
CSS working in Firefox but not working in Chrome
I have designed a menu in magento. my menu is working fine in firefox. when I hover on menu in firefox it works well but does not show effects on hover in chrome. My style for hover is like this: ...
Javascript/jquery not working
This code works perfectly to do what I want in jsfiddle, but I cannot replicate it when doing it on my local files i.e. index.html, index.css, index.js. Could someone be kind enough to outline how I …
Trouble with Javascript mouseover
I've been trying to make a div inside a container div visible when the mouse is moved over the container div. Currently the div that needs to be made visible has property display set as none. I've ...
Post on facebook page's wall
I'm looking to create an addon to my jQuery/PHP site which allows users to share a link to their Facebook page provided by me. I understand how to initialize the variables in-order to them to work …
How to run .hta file from within .html file w/o asking to download it
I want to run .hta file from within .html file w/o the browser asking to download it.It should run in an iframe in the html page in the browser. The code i am using is this- <!DOCTYPE html> ...
Suggestions for graph ui library for showing analytical graph
I want to make analytical graphs of tweets, something like the following website link Website-Link I wanted to know what are the best option available in open source ? I have heard Raphael.js is …
HTML is not working in IE10 but in IE7
I have problem with IE10, its not rendering perfectly html in iframe, but works in IE7. in ie10... doesn't seem to have margin applied to paragraph and list. I use iframe to embed html from another …
PHP: Put frequently encountered simple actions in a methods
I've been reading a lot about writing "high quality" PHP scripts and many people mentioned that it is a good practice to put the frequently encountered simple actions in a methods, such as multiply …
Automation server can't create object in IE
I want export a HTML table into an Excel sheet using IE8 or Outlook. Because i am working in Dynamics CRM Web-Resource, is nothing but a html page. When i create ActiveXObject as : var ExcelApp = …
mp3 file upload with phonegap on Windows RT [ Unicode Mappping error ]
I Used phogap function for recording audio and uploading audio , file. Audio File is recording and stored in music folder and i get the path and name of the file by the below function. function ...
How do I prevent my div layers from overlapping when the browser is resized?
I've just spent the last few weeks learning how to properly design a layout. I basically thought I had everything perfect with my website layout and was ready to go about transferring the coding to …
how can i search the server for a php session?
What's the best way to search if a PHP session has been created on the server? For example, store the name Joe somewhere in a session, and then after Joe closes his browser, can I then lookup (in a …
What does this reg exp means in php?
I found a php function which is used to grab the item title from a webpage, and the reg exp it used is /<div class=\"detail\">(.*?)<p>/si, as in the following code: I knew that /<div …
paginate_links not work in child theme
i am using that code. its show the pagination but when i click on second page its show not found. $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => ...
Facebook kicks me out of facebook
i have created an application where user can post specific post to the groups they belong. user can post images to groups and create albums on there profile. The problem is that when user select ...
Setting Focus to a link using class name with Jquery
Using jQuery I am trying to set focus for (CSS purposes) to a particular link from a list of related links on the load of the page based upon the class name. Example, of the following I want to set …
codeigniter/postgres throw errors when trying to insert timestamp
I'm trying to use this code, plus codeigniter to $data = array( // 'category' => $dbi['category'], 'transaction_timestamp' => time(), ); $this->db->insert('bitzon', $data); Error …
centering a div vertically breaks on refresh
I am centering a div vertically in another div using the following code: var heightf = $('.cx1').height(); var heightg = $('.cx2').height(); heighth = (heightf - heightg) / 2; if (heighth > 0) …
Server Side Validation using PHP script
I have written this code for Form using Server Side Validation in CORE PHP if(empty($s_email)){ $er = "Please enter E-mail"; }else ...
Why shouldn't I use mysql_* functions in PHP?
What are the technical reasons that I shouldn't use mysql_* functions? (like mysql_query(), mysql_connect() or mysql_real_escape_string())? Why should I move away from them as long as it works on my …
How to create dynamic images with links from database in asp.net?
How to dynamically generate the below image tag with links from the database.Number of images should be the number of items in the database. Can we use listview or repeater to achive this.If yes how …
height in a fluid layout
I'm trying to design a fluid / responsive web design using bootstrap. I'm trying to design the layout so that it'll fit in many devices. My question about setting height to a layout element, such as …
how to get category name with respect to product id in WP eCommerce plugin
I am using WP eCommerce for displaying products in my website.I want to check the category name of each product displaying in the page. while (wpsc_have_products()) : wpsc_the_product(); …
X-SendFile - detect if XSendFilePath is set
I just started using the XSendFile apache module to serve files. Except for the fact that I cannot know when a download is complete, I guess it's pretty good... One problem though, I found out that …