radhakrishna.p 29 Posting Whiz in Training

hi nadiam,
i think you are using $rw variable out of the scope. let me know is $rw globally defined variable in your php page?

pls notice

  $rw = mysql_fetch_array($sql);  // you defined here
}  // closed loop here
}  // closed loop here
?>
Event Name : <input type="text" name="ename" value="<?php if($rw) {echo htmlentities($rw['event_name']);} ?>" required />

that might be a problem check it once

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hi Douglas_2,
if you want to place the coordinate values in two fields then try to change the code in the showPosition() method is enough.
i mean change like from this to (instead of displaying into div)

 x.innerHTML=”Latitude: ” + position.coords.latitude +“<br>Longitude: ” + position.coords.longitude;

this

document.getElementById('field1').value = position.coords.latitude;
document.getElementById('field2').value = position.coords.longitude;

if you have fields like this in your form
<input type="text" id="field1">
<input type="text" id="field2">

try to do like as shown above you will get output as you like

let me know the status

note: any comments are appreciated.

radhakrishna.p 29 Posting Whiz in Training

hi nadiam ,
first you have to know one thing about radio buttons functionality
if you want select one radio button among three or group of radio buttons then you should go like as follows (name of radio buttons are same)

<input type="radio" name="status" value="unconfirmed"> unconfirmed
<input type="radio" name="status" value="attended"> attended
<input type="radio" name="status" value="not attended"> not attended

from the above group you can select only one

similary what i am understanding from the given picture & the code is
for example your giving the same names(suppose unconfirmed column) to all the radio buttons of unconfirmed column in all rows so you could select only one from the entire unconfirmed column not on each record

try to change your code to give different names to each row column group

what i mean is try to give as follows for each row

<input type="radio" name="status[some_dunamic value_for_this_row]" value="unconfirmed"> unconfirmed
<input type="radio" name="status[some_dunamic value_for_this_row]" value="attended"> attended
<input type="radio" name="status[some_dunamic value_for_this_row]" value="not attended"> not attended

so that you can achieve your functionality successfully.

pls try do as above said

let me know if you any doubts in my clariification

note : sorry for my poor written skills

note: comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hi all,
i am not sure but my guess is the problem might be with jquery. it conflicts with other jquery codes in your page.
so try to change the lines from (50-53 in the above post)this

<script>
    $(function() {
        $( "#tabs" ).tabs();
    });
</script>

to this,

<script>
    Jq = $.noConflict();
    Jq(function() {
        Jq( "#tabs" ).tabs();
    });
</script>

check it and let me know the status.

note : any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hi BenWard ,

i dont know exact solution for your problem but try with this

pls replace this £ symbol with '&pound' word at php side and send these results to your webpage through AJAX as it is it will produce the currency symbol as you expected

i am not sure but its work fine

let me know the status

have a great day

go through this URL it gives better clarification

http://webdesign.about.com/od/localization/l/blhtmlcodes-cur.htm

note : comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hai kaungzaythu,

i think [in your view page] you need to change this line from this

 <?php echo form_dropdown('r_e_name', $return);?>

to this

 <?php echo form_dropdown('r_e_name', $data['return']);?>

because in your controller code you placed all regions data in $data['return'] data array with index 'return'

so in our view, we need to retrive it as we stored

i think you got my point

let me know if you have any doubts in my clarification

radhakrishna.p 29 Posting Whiz in Training

hai Xitij,

great to here and nicely found the bug.thanks alot to you for that

just now i changed the code to fix that bug

here is the modified version of the code

<html>
<head>
<title>welcome to Convert Currency In Words(http://pandiyachendur.blogspot.in/2009/11/javascript-to-convert-indian-rupees-in.html)</title>

<script type="text/javascript">


function test_value() {
    var junkVal=document.getElementById('rupees').value;
    junkVal  = Math.floor(junkVal);
    var obStr = new String(junkVal);
    numReversed= obStr.split("");
    actnumber=numReversed.reverse();

    if(Number(junkVal) >=0){
        //do nothing
    }
    else{
        alert('wrong Number cannot be converted');
        return false;
    }
    if(Number(junkVal)==0){
        document.getElementById('container').innerHTML=obStr+''+'Rupees Zero Only';
        return false;
    }
    if(actnumber.length>9){
        alert('Oops!!!! the Number is too big to covertes');
        return false;
    }

    var iWords=["Zero", " One", " Two", " Three", " Four", " Five", " Six", " Seven", " Eight", " Nine"];
    var ePlace=['Ten', ' Eleven', ' Twelve', ' Thirteen', ' Fourteen', ' Fifteen', ' Sixteen', ' Seventeen', ' Eighteen', 'Nineteen'];
    var tensPlace=['dummy',' Ten',' Twenty',' Thirty', ' Forty', ' Fifty', ' Sixty', ' Seventy', ' Eighty', ' Ninety' ];

    var iWordsLength=numReversed.length;
    var totalWords="";
    var inWords=new Array();
    var finalWord="";
    j=0;
    for(i=0; i<iWordsLength; i++){
        switch(i)
        {
        case 0:
            if(actnumber[i]==0 || actnumber[i+1]==1 ) {
                inWords[j]='';
            }
            else {
                inWords[j]=iWords[actnumber[i]];
            }
            inWords[j]=inWords[j];
            break;
        case 1:
            tens_complication();
            break;
        case 2:
            if(actnumber[i]==0) {
                inWords[j]='';
            }
            else if(actnumber[i-1]!=0 && actnumber[i-2]!=0) {
                inWords[j]=iWords[actnumber[i]]+' Hundred and';
            }
            else {
                inWords[j]=iWords[actnumber[i]]+' Hundred';
            }
            break;
        case 3:
            if(actnumber[i]==0 || actnumber[i+1]==1) {
                inWords[j]='';
            }
            else {
                inWords[j]=iWords[actnumber[i]];
            }
            if(actnumber[i+1] != 0 || actnumber[i] > 0){ //here
                inWords[j]=inWords[j]+" Thousand";
            }
            break;
        case 4:
            tens_complication();
            break;
        case 5:
            if(actnumber[i]=="0" || actnumber[i+1]==1 ) {
                inWords[j]='';
            }
            else {
                inWords[j]=iWords[actnumber[i]];
            }
            if(actnumber[i+1] != …
radhakrishna.p 29 Posting Whiz in Training

hai KamiNuvini,

you have to modify your script code as follows so that you will get your answer

$(document).ready(function(){

    $("button").click(function(){
        var long_url_txt = $("#longurl").val();  // reading value from your text field here
        $.ajax({
            url:"shortify.php",                  // where you want to pass your request
            data:"long_url_value="+long_url_txt,   // passing textfield values to desired php page
            success:function(result){
              $("#shorturl").html(result);  // fetching and placing your result
            }
        });
    }); 

});

please go through the bellow url you will find more information regarding this requirement

http://www.w3schools.com/jquery/ajax_ajax.asp

let me know the stauts

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Shalomd,

have you tried anything/any code so far please share with us?

for sending mail use php mail(to,subject,message,headers,parameters) function like as in the given url

http://www.w3schools.com/php/func_mail_mail.asp

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Albert Pinto

please go thru this url it may helps you in this regard

http://cakebaker.wordpress.com/2006/04/15/file-upload-with-cakephp/

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Maideen,

i think the following statement(at line no 26 in Search.php) might be the problem

you need to change from this

while($row = $stmt->fetch());   

to like this

while($row = $stmt->fetch()){
// your code goes here ....

}

i think you got the point and reason too

let me know the status

radhakrishna.p 29 Posting Whiz in Training

hai anisha.silva,

please mark this thread as solved if you get your answer

radhakrishna.p 29 Posting Whiz in Training

hai Sweksha,

i think you are using netbeans IDE to develop the appilication.so that those values are coming by default with JCombobox.

for this , you have to call removeAllItems() avialable in the JCombobox class before inserting data into combobox

i mean calll the following statement before while loop

combobox.removeAllItems();
while(rs.next()){
// your remaining code goes here
}

thats it

let me know the status ......

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai edwin.thomson1,

are you asking for vertical menu or horizantal menu?

please clarify this once..

i think you are looking for horizantal menu if it is then

try the bellow url which may meets your requirement
http://www.menucool.com/horizontal/css-menu

and this too,
http://nettuts.s3.amazonaws.com/819_megamenu/demo/index.html

let me know the status

[EDITED]

radhakrishna.p 29 Posting Whiz in Training

hai Webville312

you havn't set the minDate Property in your code
try to change your code as follows its work fine for myside

$( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd',changeYear:true,minDate:0,changeMonth:true,yearRange:'1900:2002'});

check it once and let me know the status
happy coding

[edited]

radhakrishna.p 29 Posting Whiz in Training

hai Junior Coder,

i recommend zebra date picker for this requirement

please go thru the following link you will find so many dateformats as you wish to display the date pickers

http://stefangabos.ro/jquery/zebra-datepicker/

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Webville312,

i think u need to set the minDate property for achieving this like as follows (incase if you are using Jquery Datepicker)

$("#datepicker").datepicker({ minDate: 0 });

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai vishal.du123,

as pritaeas said, please make your script code from this

<script>$('.countryclassinfolink').click(function(event) {
event.preventDefault();
var detailinfo = $(this).parent().next().html();
$('#country_details').html(detailinfo);
$('.countryclassinfolink2').click(function(event) {
event.preventDefault();
$('#country_details').html('');
$('#country_details').hide();
$('#country_seminars').fadeIn();
});
$('#country_seminars').hide();
$('#country_details').fadeIn();
});
</script>

to this

<script type="text/javascript">
$(document).ready(function(){

$('.countryclassinfolink').click(function(event) {
    event.preventDefault();
    var detailinfo = $(this).parent().next().html();
    $('#country_details').html(detailinfo);
    $('.countryclassinfolink2').click(function(event) {
            event.preventDefault();
            $('#country_details').html('');
            $('#country_details').hide();
            $('#country_seminars').fadeIn();
    });
    $('#country_seminars').hide();
    $('#country_details').fadeIn();
});
});

</script>

you missed $(document).ready() function to initiate the your desired ccall

thats it

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Olyboy16,

in my point of view, its vaery hard to explain by seeing the explanation.

it will be easy to expert of here atleast by seeing the example or the code for giving a proper solution to your problem

lets see if any expert of here can try to give a solution to your problem

so please wait some more time for the experts valuable response

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai klemme,

i agree with what iamthwee said is right, because while sending the image with mail not required to get the contents of the image file instead of that provide the full path of the image which is resided in your webserver like as follow

<img src="http://www.yourservername.com/dir_ofImages/image_path"/>

so you need to add this in the body of youe mail code.

i am sure this will work because i too faced same situation.in that time i got this idea and works fine now..

this is code what i used in my requirement

 $to = "to_address"; 
 $subject = "sample subject goes here";
 $headers =  'MIME-Version: 1.0' . "\r\n";
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
 $headers .= 'From: from_address_here '."\r\n";
 body = "<img src='http://www.yourservername.com/dir_ofImages/image_path'/>";
 mail($to,$subject,$body,$headers);

thats it

let me know if you have any doubts in my clarification

happy coindg

any comments are appreciated......

radhakrishna.p 29 Posting Whiz in Training

hai anisha,

why dont you try this URL once?

https://netbeans.org/kb/docs/websvc/intro-ws.html

the above url gives you a brief way for your requirement

i feel this is simple and easy for all mind levels

happy coding...

radhakrishna.p 29 Posting Whiz in Training

hai members , sorry for my gramitical mistakes in some sentences of above post

radhakrishna.p 29 Posting Whiz in Training

hai batuzai04123,

its so easy to get the same kind of thing using jquery for this you have to do the following things in your code

so let be your code like as follows (as previous)

<td>
<input type="button" id="<%=taskId%>" class="approve" value="Approve" />
<input type="hidden" id="Task<%=taskId%>" value="<%=taskId%>" />
</td>

then inside jquery place the following code

$(".approve").click(function(){
        var selecred_btn_id = $(this).attr("id");

        var sel_task_id = $("Task"+selecred_btn_id).attr("id");

        window.alert(sel_task_id);      
        // your remaing code goes here

})

you will get the approve button selected task id as you wish

i think you the point

check it once by doing as i explained above

let me know the status

note: i apologies to the members over here because i posted the code than explaining ( i feel beter by giving the code that explaining the concept)

radhakrishna.p 29 Posting Whiz in Training

hai Bibek_NS,

in addition to the abouve suggested urls , go through the following links it may helps you in this regard

http://s3.envato.com/files/2526201/index.html

or

http://ruwix.com/simple-javascript-html-css-slider-progress-bar/

let me know if you have any doubts

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai batuzai04123 ,

why dont we try to pass taskid value to java script from button onclick eventt like as follows

<input type="button" id="btnApprove" onclick="getTaskId(<%=taskId%>);" value="Approve" />

if you try like as above there is no need of hidden feild as well as you may get the task id directly in java script also

try like this and let me know if you have any doubts in my clarification

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai Ze0001ng

i feel this the best hosting server for java but it has 15 trail period then if you want to upgrade there is upgrade option too

have a look at once (i tried it and experienced it)

http://jelastic.com/

radhakrishna.p 29 Posting Whiz in Training

hai RinzLove,

please mark this thread as solved if you got the answer

radhakrishna.p 29 Posting Whiz in Training

please mark this thread as solved if you got answer

radhakrishna.p 29 Posting Whiz in Training

please mark this thread as solved if you got answer

radhakrishna.p 29 Posting Whiz in Training

hai RinzLove,

why dont you try to use cookies in this requirement?

the following url may help you in this regard

Click Here

radhakrishna.p 29 Posting Whiz in Training

is this r u looking for Click Here

radhakrishna.p 29 Posting Whiz in Training

please mark this threead as solved if you got your answer

radhakrishna.p 29 Posting Whiz in Training

please mark this thread as solved if you got your answer

radhakrishna.p 29 Posting Whiz in Training

hai erum,

i too surprised by seeing this kind of requirement

its working for the click event of button like this format

<input type="button" name="" value="Try it" onclick="myFunction()"/>

than this

<button onclick="myFunction()">Try it</button>

i dont know the reason exactly but i think this might be html version problem

we will wait for proper reason from anyone of experts here

radhakrishna.p 29 Posting Whiz in Training

hai rexmatthew,

just suggestion only:

please try to do like as follows

change from this

 <script>
    jQuery.noConflict();
       // Put all your code in your document ready area
       jQuery(document).ready(function($){
            // Do jQuery stuff using $
          $("div").hide();
        });
     // Use Prototype with $(...), etc.
      $('someid').hide();
</script>

to this (we have to use the $.noConflict() this way i think )

 <script>
jQuery = $.noConflict();
    // Put all your code in your document ready area
   jQuery(document).ready(function(){        
        jQuery("div").hide();
   });
   // Use Prototype with $(...), etc.
  jQuery('someid').hide();
</script>

let me know the status

any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hai davy_yg,

in addtion to the above responses,please consider this one

while you inserting data into galley table your sql syntax is like as follows

INSERT INTO gallery(productname, location, description, urlimages).......

but while you updating the gallery table your sql is

UPDATE gallery SET productname='".$productname."', image='".$location."', description='".$description."', urlimages='".$urlimages."' WHERE id=".$_REQUEST['id'];

in update statement we found image column but not in insert statement

please check your gallery table structure once so that your problem will be solved

any comments are appreciated.....

radhakrishna.p 29 Posting Whiz in Training

hai jmw5598,

there are plenty of reasons for coming SQLException in order to connect with databse.itrs not easy to trace out by just specifying "SQLException"

could you please post entire printStackTrace() details here?

so that it will be easy for us to help you...

happy coding..

radhakrishna.p 29 Posting Whiz in Training

hai joseph.lyons,

i dont know whether you got my point or not

no problem at all i think you are in the learning stage

i said use either of one way but you included both

i mean in your code use this line (in this case you have to enter your input in the dialog box)

String pubName = JOptionPane.showInputDialog("Please Enter the pubs name you wish to search.");

or this line (in this case you have to enter your input at command prompt)

String pubName = sc.next();

thats it

please do accordingly and let me know the status as well as if you have any doubts in my clarification

any comments are appreciated

radhakrishna.p 29 Posting Whiz in Training

hai mtangpos16,

i have done some modifications to your code

you can not write a class inside a main method because main() method is starting point for creating objects but not starting point of the class creation/definition/declaration.

i think your code would be like as follows

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package googleproblem;

/**
 *
 * @author mtangpos
 */
public class GoogleProblem 
{

    public static void main(String[] args) {    

        Mobilephone mp = new Mobilephone(1, 1, 1, 1000, 1, "iphone", "mobile_department");

        //if you want to calculateInventory
        System.out.println("calculateInventory= " + mp.calculateInventory());

        //if you want to getDepartment();
        System.out.println("getDepartment= " + mp.getDepartment());

        //if you want to getInventoryStockValue();
        System.out.println("getInventoryStockValue= " + mp.getInventoryStockValue());

        //if you want to getInventoryValue();
        System.out.println("getInventoryValue =" + mp.getInventoryValue());

        //if you want to getItemNumber();
        System.out.println("getItemNumber= " + mp.getItemNumber());

        //if you want to getProductName();
        System.out.println("getProductName= " + mp.getProductName());

        //if you want to getSerialNumber();
        System.out.println(" getSerialNumber =" + mp.getSerialNumber());

        //if you want to getUnitPrice()
        System.out.println("getUnitPrice =" + mp.getUnitPrice());

        //if you want to getUnitsStock()
        System.out.println("getUnitsStock = " + mp.getUnitsStock());       

    }



class Mobilephone { //class name and attributes

            private int SerialNumber; //serial number of product
            private int ItemNumber; //item # of product
            private double UnitsStock; //# of units in stock
            private double UnitPrice; //Price per unit
            private double InventoryValue; //The dollar value of the inventory in stock
            private String Department; //The department the product belongs to
            private String ProductName; //product name
//constructor

            public Mobilephone(int item, int serial, double units, double price, double …
radhakrishna.p 29 Posting Whiz in Training

hai chdboy,

as above experts said

you may also try like this

import java.sql.DriverManager;
import java.sql.Connection;

public class connectionDB 
{
    public static Connection getCon()throws Exception 
    {
       Class.forName("your_database_driver_name_goes_here");
       Connection con = DriverManager.getConnection("your_connection_string_here","user_name_here","password_here");
       return con;
    }
}

call the getCon() method wherever you want by using its class name directly as follows

Conncetion con = connectionDB.getCon()

let me know the status

any comments are much appreciated

radhakrishna.p 29 Posting Whiz in Training

hai ASWEDAN,

i have a small doubt

let me know what does the statement means at line no 7 ?

If Con.State = ConnectionState.Closed Then

in the above statement r u going to assigning values are comparing values

i donot have a great knowledge in vb.net but it seems to be invalid condition check

i think it will be like as follows

If Con.State == ConnectionState.Closed Then

check it once let me know the status.

radhakrishna.p 29 Posting Whiz in Training

hai Kert

i am not sure but try to keep the call out side of the $.get() method call

$('#candidatetable tbody tr').remove();

just try it once and let me know

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai kert

i think what your problem is, when you click on the OTSI button results are appended to the table every time

if you want to refresh the results everytime when you click on otsi button

you just need to use the following call in your java script code

$('#candidatetable tbody tr').remove(); // it removes all inside<tr> tags of <tbody> tag in your table 

i mean place this call as follows in your dbquery.js

$("#showTable").click(function(event){

     $('#candidatetable tbody tr').remove();
    // your remaining code goes here as it is
}

i hope you got my point

please do the following modification and let me know the status

happy coding

[modified]

radhakrishna.p 29 Posting Whiz in Training

hai Kert

i couldn't find any problem in that page

could you post me the error image or details of the problem here?

so that we will try to give a way to solution

hapopy coding

radhakrishna.p 29 Posting Whiz in Training

hai Venter,

can you explain me a little bit more about whats your actual requirement is?

i am getting little bit confustion about your requirement.

so i have modified your code what i understood from the post which is given below

have a look at once. after changing the valus of drop down box the page is redirected to Requirement.php page

there you can echo your selcted value this is also given in the below of the code.

<html>
<head>
<script type="text/javascript">
function change(select_id)
{
    // getting values into java script from the dropdown box in html

    var CustomersSelect = document.getElementById(select_id); 
    var customer_name = CustomersSelect.options[CustomersSelect.selectedIndex].text;

    document.location.href ="Requirement.php?my_val="+customer_name;
}
</script>
</head>
<body>
<form>
    <select name="customers" id="customers" onchange="change(this.id)">
        <option>Varma</option>
        <option>Phani Varma</option>
        <option>Prabhas Varma</option>
        <option>Kishore Varma</option>
    </select>
</form>
</body>
</html>

at Requirement.php you need to get the selected value by using $_GET['my_val'] for echoing the value

let me know whether this is what you expected or not

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai darkc99,

can you post the table structure and code once here?

so that we will try to help you out in this regard

radhakrishna.p 29 Posting Whiz in Training

hai hbhatti18,

go through the following URL it may helps you a lot

http://www.onbarcode.com/products/java_barcode_reader/

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai ChargrO,

try this (is also valid)

var VerbSelect = document.getElementById('Verb');

var Verb_text = VerbSelect.options[VerbSelect.selectedIndex].text;
          (or) 
var Verb_val = VerbSelect.options[VerbSelect.selectedIndex].value;

let me know the status

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai ChargrO,

small suggestions: (along with above updates of your code)

you got the values of dropdownlist Direction,Verb,DirectionRhyme correctly

you have to do exactly same thing for the remaining drop down boxes

but you are displaying the values of remaining dropbox values directly like

f.occupation.value , f.Cname.value , f.Rname1.value .... etc

please do same as above for the remaining dropdown box values before displaying the values by using document.write()

thats the only thing you have to do for getting the desired result as you wish

please do those modifications in your script code

let me know the status after the modifications as well as if you have any doubts in my clarification

happy coding

radhakrishna.p 29 Posting Whiz in Training

hai darkc99

please check whether these two columns ddown_status , Machine ID are existed in your database table dorder or not

if not matched replace with exact column names

check it once and let me know the status