719 Posted Topics
Re: It's seems that all important code is inside functions that you didn't post, like `have_posts()`, `the_post()` and `post_class()` By the code posted I think you can do the filter altering only the `have_posts()` function but we need to see the code so we can help. | |
Re: That's because you are executing the script before echoing the $data. If you invert it may work: <p style="margin-bottom: 50px;"></p> <?php echo $data; ?> <script type="text/javascript"> var url = "<?php echo $url; ?>"; var temp = getElementsByClassName('daniweb'); document.write(temp); </script> Or, the way I think is better, use the onload event … | |
Re: But how do you want the result to be? | |
Re: My question is Why do want this? Can't you just store the user preferences in the Settings file, Registry or a config file like any other program do? What's the point of generating a new .exe? | |
Re: You should use the DataSet as the DataSource and not the Adapter, and you are missing the DataBind too, try like this: chart1.DataSource = ds2; chart1.Visible = true; chart1.DataBind(); | |
Re: Last things first... you shouldn't relly on JS to calculate the final price. You can use JS to calculate and show the price to the user, but once you send the selected products to your PHP script you should use the prices from the database. What I mean is, don't … | |
Re: I don't know if it was a typo on the post, but it's **$_POST** and not $POST. Another thing, I'm guessing, but I don't hink `<input type="(float)number" name="price" />` is a valid markup. | |
Re: Your function is named wrong. Named function: `user_exsists` Used function: `user_exists` Just a typo. | |
Re: You have to add an `onChange` event to the "masters" selects, and when they change you update the require rows. | |
Re: If I had such problem I'd create the form with JavaScript. Then during the form creation I'd make ajax calls to the server that validate if the form can or can't be created, here you could insert the idea of a unique key generated by the server. So it would … | |
Re: There's no magic way to do it, but there's others ways like storing the values A,B,C in an array and loop for a match or using RegEx. I'd use RegEx for a short code, something like this: IF ( RegEx.Match(TextBox1.Text, "^[ABC]$").Success ) Then End If To use RegEx you need … | |
Re: I think that is not possible using the <select> element, you'd have to create your own. Maybe you could use the jQuery UI AutoComplete widget, it's kind easy to style. Take a look at http://jqueryui.com/autocomplete/#combobox | |
Re: I didn't understand much of what your problem is. But is something like this that you want? <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css"> <style> div { text-align: right; padding: 1px; margin: 1px; color: #006666; font-family: arial; font-size:28pt; font-weight:700; background-color: } </style> <script type="text/javascript"> function calculate(inputId, outputId) { A = … | |
Re: I found that intriging to make, so I made a little demo in the style of a jQuery plugin. Take a look, it's pretty basic yet, but can turned into a plugin. <!DOCTYPE html> <html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script> // Extends jQuery methods $(function($){ $.fn.extend({ /* Create 'bullets' for … | |
Re: I don't have much experience with VB, but I would try something like this: Dts.Variables("User::ReNameFile").Value = Dts.Variables("User::fileName").Value.ToString() + DatePart(DateInterval.Month, Now).ToString() + DatePart(DateInterval.Year, Now).ToString() + ".csv" | |
Re: If I understood you structure, if a user send the same PM to multiple users, this PM will be inserted multiple times into the PM table. Is that correctly? I assumed this because of the `ToId` field. If I supposed correctly, then you don't need the second table. Because when … | |
Re: Try putting those two lines at the begining of the page and see if throws any other errors: error_reporting(E_ALL); ini_set('display_errors', 1); You could also try using `function_exists` to check if the function is defined. | |
Re: You can either create another file(my suggestion) or insert and IF at the begining of the page. When you make an HTTP Request to an webpage it will return all things that were wrote in the response. This mean that any html tags that are not handled by the server-side … | |
Re: What do you mean by "they do not appear in the context that I gave them"? I didn't understand your problem. | |
Re: Here's a code sinnept that may help you, but it's not using jQuery: <html> <script> function slcMes_change() { document.getElementById("slcDia").options.length = 0; for(var i=0; i < 31; i++) { document.getElementById("slcDia").options[i] = new Option(i+1, i+1); } } </script> <body> <select id="slcMes" size="1" onchange="slcMes_change()"> <option value="0">Select</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option … ![]() | |
Re: You could use jQuery as suggested by dany12, it's a great idea because it really simplifies your job. But, if can't or won't use jQUery this is how you can do it with pure JS: function disabledFrame() { var frm = parent.Left.document.hi, // Reference to the form in the Left … | |
Re: There are some steps that you can do to verify where the problem lies: 1. Debug the JavaScript code with your browser to see if $("form#myForm").serialize() is returning what is expected. 2. Use your browser network watcher to ensure that the data is being sent 3. Debug your PHP code … | |
Re: I think using float is too much risky. If you forget to use clear you may mess up your layout and if you have lots of floats it can be really painfull to find and correct the problem. I've been using this css class to position elements inline without using … | |
Re: There's a lot of ways of doing it, some of those are: * Using IFrame to load the page * Using RSS Feeds * Using some webservice/API provided by the site(like facebook and twitter) * Using HTTPRequest on the server-side to load the page as text and them parse the … ![]() | |
Re: You didn't show any problems. This list is only about things that you need to analyse, study and take care of. When you have to create an database model you need to understand what are you modeling in the first place. We can't tell you the entities for those systems, … | |
Re: Try this to block space: $("#nickname").keypress(function(evt){ if ( evt.keyCode == 32 ) // space { return false; } }); Here's my whole test: <head> <script type='text/javascript' src='http://code.jquery.com/jquery-1.4.4.min.js'></script> <script type="text/javascript"> $(function(){ $("#nickname").keypress(function(evt){ if ( evt.keyCode == 32 ) // space { return false; } }); $("#nickname").change(function(){ str = $(this).val(); $("#log").append("<br/>change: "+ … | |
Re: I suppose you are using a DataBase to store the records, right? So, if you table is normalized (one table for each type of record) you can make a select from each table that you want to use as a filter to populate the dropdowns. Then, if a dropdown is … | |
Re: Take a look at this post: http://stackoverflow.com/questions/750032/reading-file-contents-on-the-client-side-in-javascript-in-various-browsers | |
Re: I'd say jQuery UI. It's a great project, much used over the web, with lots of functionalities and it's has a great community. I never joined the group, but I really respect and appreciate the job they're doing. | |
Re: I'd do it like this: "insert into hostel_info(hostelName,rooms,capacity) select HostleName, '" + hmr.RoomNO + "','" + hmr.CapacityID + "' from tbl_Hostel where (HostelID ='" + hmr.HostelID + "')"; Clean example: INSERT INTO hostel_info(hostelName,rooms,capacity) SELECT HostleName, 'rooms', 'capacity' FROM tbl_Hostel WHERE (HostelID = 'id') | |
Re: If you are going to develop a rich internet aplication you will need, at least: 1. To create the User Interfe: 1.1. HTML 1.2. CSS 1.3. JavaScript 2. To handle the user requests and process data on the server: 2.1. PHP 2.2. MySQL, or another database Talking about concepts, you … | |
Re: Man, I have no idea of what you trying to do. Your code doesn't make any sense to me. You want to have an array and create radio buttons, is that it? I mean, if there 10 itens in the array you want 10 radio buttons? | |
![]() | Re: Try this: <html> <head> <script> function CheckDivisors() { var number=parseInt(document.divfrm.num.value), d=1, divisors = []; do { if(number%d==0) { divisors.push(d); } d++; } while(d<=number/2); document.getElementById("divDivisors").value = divisors.join(", "); } </script> </head> <body> <form name="divfrm"> Enter a number: <input type="text" name="num"> <br> Divisors: <input type="text" name="div" id="divDivisors"> <br> <input type="button" value="Display Divisors" … ![]() |
Re: It's not a good implementation what you're trying to do, and I don't know if it can be made like that, I think not. I'd suggest one of two things: Either do it on the ItemDataBound event on your code behind OR, the easiest one, create a function that return … | |
Re: Try like this: var images = ["art.berto-2.jpg","shawnajord.png","caitlynnew.png"]; var x = 0; $(document).ready(function() { $('.hover').mouseover(function(){ $(this).css('color', 'red'); $('.hover').mouseout(function(){ $(this).css('color', 'black'); }); $('p').mouseover(function(){ $(this).css('color', 'orange'); }); $('p').mouseout(function(){ $(this).css('color', 'black'); });// for the links // var changePic = $('pageTitleBanner').attr('src'); $('#masthead').mouseover( function() { $(this).css('background-color','red'); }) .mouseout( function() { $(this).css('background-color','black'); }) .click( function() { $(this).css('background-color','blue'); … | |
Re: Try like this: <ul class="css-tabs"> <li><a href="#first-tab">info</a></li> <li><a href="#second-tab">info</a></li> </ul> <div id="first-tab"> first tab information in here </div> <div id="second-tab"> 2nd tab information in here </div> But you can't duplicate this HTML to create another tab, because the ID's must be unique! If want two tabs, create two set of … | |
Re: One question, those inputs are going to stay on the page only for the current user session or they must appear in the next visits as well? In the first case, I'd save them in the Session, using an List<UserInput>. Where UserInput is a class with Title and Text properties. … | |
Re: You can make a simple test to verify what occurs. Declare a `var buttonClicked = false`. Inside the $(button).click() set it as true, then inside the $(window).click() alert the var to see it's state. If the button is 'clicked' before, you can use this var to ignore the event at … | |
Re: As far as I know, barcode scanner work as a keyboard. So it may be sending an Enter key that click the default submit button, as said by stbuchok. I'd suggest you to remove any `<button type="submit" />` and `<button />` and try it again. Ps.: Buttons without types are … | |
Re: HTTP Error 504 it's gateway timeout. How are you trying to insert the data into the database? You said you are using JS and ASP. The JS is reading the file and sending the data to the ASP server page to insert into the database? Is that right? If so, … | |
Re: Another option is to execute the function on page load, like this: window.onload = function() { loadData(); }; Just a suggestion, instead of concat the ID's in different orders for the input and for img, wouldn't it be easier to add a sufix? IE.: // Set IDs <td class="calendar-day"> <input … | |
Re: OMG, it's really really messed up. I think you'll need to go in steps, fixing a thing each time. The first thing that I noted is a HTML markup error, there's a `</div>` that has no begining tag, after the `<div id="headerWrapper">` closing tag. | |
| |
![]() | Re: Are you using pure JavaScript or jQuery as well? ![]() |
Re: It's impossible my friend. As JormeM said, the content is already on the browser. Most browsers has features that show all the images that were downloaded, and to copy the text the user simple need to view the page source and he can copy all he want. Implementing "security" of … | |
Re: No, <br/> is not the best option to vertical space. I suggest using margin and/or padding, depend on your needs. | |
Re: It's not joining because you didn't specify the link column. You should have something like this: `WHERE Table1.Field1 = Table2.Field1 AND...` You need to teel by which columns the tables are linked. | |
Re: Yes, it possible. With JavaScript the click event data has the coordinates of the mouse when the click occured, both relative to the page and to the screen. | |
Re: To achieve this kind of validation you need to do it with JavaScript. Because if you do it only with asp.net, the page will make a request to the server to validate each field. I recommend that you use jQuery to achieve this functionality without too much headaches. There's lots … | |
Re: Is something like this? .my-nav-bar { width: 100%; /* the parent must have 100% either */ overflow: hidden; /* hides overflow */ } |
The End.