Notepad++
Jules VDV
Posts
-
Favorite XML Tools? -
display query result in a table using PHPYou might want to try changing this:
$sqlQuery = mysql_query("SELECT * FROM t_board WHERE $SearchOpt LIKE '%$SearchKey%' ORDER BY registerTime DESC;");
to this:$sqlQuery = mysql_query("SELECT * FROM t_board WHERE $SearchOpt LIKE '%" . $SearchKey . "%' ORDER BY registerTime DESC;");
Also, make sure your request is POSTing the correct parameters: How many records exist in $recs after you run the query? Tryprint count($recs);
-
how to add item and notify item double-click of jquery sortable?Thanks for that, I've never used that functionality before.
-
how to add item and notify item double-click of jquery sortable?To add items dynamically, it looks like you would have to add another DOM element and then call the sortable initializer on the entire set of elements again. So you may have a button that adds a dom element to a div container with the id 'sortable'. Then call the method below.
$( "#sortable" ).sortable();
For the double click functionality, I would use jQuery's dblclick API. So while you're creating the DOM element above, right before you call sortable(), I would attach a double click handler like so:
$('#target').dblclick(function() {
alert('Handler for .dblclick() called.');
}); -
The Javascript variable under HTML reference questions:) [modified]You could use the following piece of code in place of the string constant currently in the HTML
document.write(a);
So it may look like:
var a = "http://player.56.com/vNTcxMTA1Njc.swf";
document.write(a);" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32">
-
Help - Horizontal dropdown menuThe problem is always with IE. You'll find that IE will often give you headaches while creating websites.
-
Help - Horizontal dropdown menuI think you may need a CSS reset for IE6 to stop the "shifting" when opening the menu. Try
* {margin:0; padding:0;}
in your CSS
-
how to pass the slected option from a html drop down list to a java script variable?? -
how to pass the slected option from a html drop down list to a java script variable??If what you want to get is the value attribute then:
function getValue(){
var e = document.getElementById("dept");
var strDept = e.options[e.selectedIndex].value;
}If you want to get the text of the selected value
function getText(){
var e = document.getElementById("dept");
var strDept= e.options[e.selectedIndex].text;
}Then you will need to hook the function into the onchange event of your ...
-
CMS [modified]A couple of options for larger CMS projects come to mind. OpenCMS - Java based enterprise CMS - Open source with commercial support available - Extensible using Java API to build custom modules - Concept of multi-site and micro-sites DotNetNuke - .NET based - Both open source and commercial versions available
-
While Press "Esc" key ajax request and response is stopped in the browserAre you talking about a regular javascript modal message box or a html/css/js modalbox? If it's the latter, I would call it's close function prior to stopping the event propagation in your keydown handler.
-
While Press "Esc" key ajax request and response is stopped in the browserMost browsers use the Escape key to cancel out of loading a page and I think it is probably also causing any other AJAX requests being processed to also be canceled by your browser. As for stopping this default behavior, you could try preventing the Esc key's default action with the following:
//place in the window keydown event
//IE
e.cancelBubble=true;
e.returnValue = false;//FF
if (e.stopPropagation){
e.stopPropagation();
e.preventDefault(); -
Setting background image for iframe?Going from memory here, but it may help... In most browsers you can set the background CSS property to transparent...but not IE. In IE you must also set the background of the content/page loaded in the IFrame to transparent. I would assume that you need to set the background image property for the content/page that you are loading inside of the IFrame, not the IFrame element itself
-
Simple CSS Question.Always a good idea :)
-
Simple CSS Question.I would also suggest setting your body font-size to 62.5%. This way, it is easier to convert between em and px. For example:
body{
font-size: 62.5%;/*1em = 10px*/
}p{
font-size: 1.2em; /* 1.2em = 12px */
} -
create script for entire database in PostgreSQLYou could use PgAdminIII and it's database backup function. This allows you to select which objects you would like to re-create. This could then be run using restore from either PgAdmin or the command line, depending on your requirements
-
sorting on cloumn headers acending and desandingI think you want to load a table and then be able to sort the data by a column after the data is loaded by clicking on the col header, correct? Uh oh, i think i may like jQuery too much as i just posted a different response pointing the user to the jQuery library. Take a look at ajaxrain.com for table plugins to jQuery. I know there's a couple of them out there, if this is what you're looking for
-
treeview creation [modified]The jQuery toolkit has multiple plugins that could handle this
-
PHP editor?Not totally sure if they have a linux version but they might. NetBeans6.5 has built in PHP features