719 Posted Topics

Member Avatar for selasedaniweb

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.

Member Avatar for selasedaniweb
0
449
Member Avatar for persianprez

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 …

Member Avatar for AleMonteiro
0
337
Member Avatar for cssweb
Member Avatar for Yorkiebar14

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?

Member Avatar for TnTinMN
0
200
Member Avatar for clusterworks

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();

Member Avatar for AleMonteiro
0
290
Member Avatar for Martin C++

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 …

Member Avatar for AleMonteiro
0
146
Member Avatar for chira.laura.9

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.

Member Avatar for broj1
0
347
Member Avatar for GraficRegret

Your function is named wrong. Named function: `user_exsists` Used function: `user_exists` Just a typo.

Member Avatar for GraficRegret
0
364
Member Avatar for rpgowned

You have to add an `onChange` event to the "masters" selects, and when they change you update the require rows.

Member Avatar for AleMonteiro
0
180
Member Avatar for mmonclair

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 …

Member Avatar for mmonclair
0
298
Member Avatar for LD Company

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 …

Member Avatar for AleMonteiro
0
185
Member Avatar for giovannitao

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

Member Avatar for AleMonteiro
0
65
Member Avatar for mattsearle

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 = …

Member Avatar for mattsearle
0
176
Member Avatar for vizz

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 …

Member Avatar for vizz
0
300
Member Avatar for Stuugie

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"

Member Avatar for Stuugie
0
356
Member Avatar for dancks

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 …

Member Avatar for dancks
0
316
Member Avatar for GraficRegret

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.

Member Avatar for GraficRegret
0
102
Member Avatar for secretply

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 …

Member Avatar for AleMonteiro
0
138
Member Avatar for while(!success)

What do you mean by "they do not appear in the context that I gave them"? I didn't understand your problem.

Member Avatar for JorgeM
0
162
Member Avatar for jemz

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 …

Member Avatar for stbuchok
0
104
Member Avatar for sunnykeerthi

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 …

Member Avatar for AleMonteiro
0
642
Member Avatar for AARTI SHRIVAS

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 …

Member Avatar for AARTI SHRIVAS
0
544
Member Avatar for theguitarist

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 …

Member Avatar for AleMonteiro
0
160
Member Avatar for gogs85

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 …

Member Avatar for diafol
0
160
Member Avatar for dinesh92

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, …

Member Avatar for AleMonteiro
0
185
Member Avatar for jayreis

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: "+ …

Member Avatar for jayreis
0
178
Member Avatar for jonsan32

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 …

Member Avatar for AleMonteiro
0
225
Member Avatar for mousa.khaleel13

Take a look at this post: http://stackoverflow.com/questions/750032/reading-file-contents-on-the-client-side-in-javascript-in-various-browsers

Member Avatar for AleMonteiro
0
4K
Member Avatar for gon1387

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.

Member Avatar for gon1387
0
283
Member Avatar for shahai.ali

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')

Member Avatar for shahai.ali
0
153
Member Avatar for ronaldneck

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 …

Member Avatar for javedsai
0
712
Member Avatar for ThePythonNoob

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?

Member Avatar for AleMonteiro
0
222
Member Avatar for Zaina jee

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" …

Member Avatar for Zaina jee
0
171
Member Avatar for missc

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 …

Member Avatar for AleMonteiro
0
685
Member Avatar for unau2k

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'); …

Member Avatar for AleMonteiro
0
390
Member Avatar for mpc123

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 …

Member Avatar for AleMonteiro
0
106
Member Avatar for james19862012

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. …

Member Avatar for AleMonteiro
0
174
Member Avatar for minitauros

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 …

Member Avatar for minitauros
0
3K
Member Avatar for McLaren

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 …

Member Avatar for McLaren
0
138
Member Avatar for f_atencia

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, …

Member Avatar for f_atencia
0
154
Member Avatar for venkyb47

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 …

Member Avatar for venkyb47
0
144
Member Avatar for OsaMasw

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.

Member Avatar for OsaMasw
0
184
Member Avatar for crazydevelopervish
Member Avatar for AleMonteiro
0
204
Member Avatar for avroshk
Member Avatar for bobtutos

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 …

Member Avatar for lambing
0
124
Member Avatar for GiddyupGilbert

No, <br/> is not the best option to vertical space. I suggest using margin and/or padding, depend on your needs.

Member Avatar for JorgeM
0
104
Member Avatar for mpc123

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.

Member Avatar for veedeoo
0
157
Member Avatar for TF401

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.

Member Avatar for AleMonteiro
0
171
Member Avatar for hackit

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 …

Member Avatar for AleMonteiro
0
143
Member Avatar for suavedesign

Is something like this? .my-nav-bar { width: 100%; /* the parent must have 100% either */ overflow: hidden; /* hides overflow */ }

Member Avatar for suavedesign
0
5K

The End.