Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Java issue.

  1. #1
    New Coder
    Join Date
    Aug 2012
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Java issue.

    Having an issue with java. Whenever I use this script:


    Code:
    <script type="text/javascript"> 
    var currentParams = {}
     
     
    document.observe('dom:loaded', function(){
     
      $(document.body).addClassName('iphone');
     
    	// We'll check the hash when the page loads in-case it was opened in a new page
    	// due to memory constraints
        Picup.checkHash();	
     
       // Set some starter params	
       currentParams = {
    	'callbackURL' 		: escape('http://www.datethebasin.com/index.php?m=account_register'),				
    	'referrername' 		: escape('App Name'),
    	'referrerfavicon' 	: escape('http://www.datethebasin.com/favicon.ico'),
    	'purpose'               : escape('Select your photo for the our App.'),
    	'debug' 		: 'false',
    	'returnThumbnailDataURL': 'true',
    	'thumbnailSize'         : '80'
    	  };
     
        Picup.convertFileInput($('field_photo'), currentParams);
     
    	});
    </script>
    This section of my page is no longer visable. All of the other code is visable and works woderful but it makes it just disappear in mobile safari. Android still views it just fine. Even got the Picup app working and able to upload a picture. I have a huge case of Moore's law i believe. lol. Can any of you java experts find out what is conflicting that is making it disappear? Thanks in advance.

    Code:
    <!-- BEGIN profile_types -->
    
    	<div id="profile_type_{type_id}" class="profile_type" style="display:none">
    
    		<!-- BEGIN profile_groups -->
    
    			<div class="form">
    				<div class="fieldset">
    					<div class="legend">{group_name}</div>
    					<dl class="fieldset fieldgrid break">
    
        					<!-- BEGIN profile_fields -->
    
        						<dt><label for="field_{field_label}">{field_name} {ifelse:field_required,"1","<i>*</i>",""}</label></dt>
    							<dd>
    
    								<!-- IF field_type = "text" -->
    									<input type="text" class="text" id="field_{field_label}" name="{field_label}" style="width: {field_width}" value="{htmlentities:field_value}" maxlength="{field_maxlength}" />
    								<!-- ELSEIF field_type = "image" -->
    									<input type="file" class="text" id="field_{field_label}" name="{field_label}" />
    									<!-- IF field_value != "" -->
    										<a target="_blank" href="{top.virtual_pic_path}{field_value}">View file</a>&nbsp;
    										<label><input class="checkbox" id="{field_label}_remove" name="{field_label}_remove" type="checkbox" value="1">&nbsp;{lang:"profile","remove"}</label>
    									<!-- ENDIF -->
    								<!-- ELSEIF field_type = "textarea" -->
    									<textarea class="textarea" id="field_{field_label}" name="{field_label}" style="width: {field_width}; height: {field_height}">{htmlentities:field_value}</textarea>
    								<!-- ELSEIF field_type = "checkbox" -->
    									<ul class="fielditems">
    										<!-- INBEGIN field_items -->
    											<li><label>{checkboxes:parent.field_label,rowcnt,parent.field_value,inner_key}&nbsp;{inner_value}</label></li>
    										<!-- END field_items -->
    									</ul>
    									<div class="clear"></div>
    								<!-- ELSEIF field_type = "radio" -->
    									<ul class="fielditems">
    										<!-- INBEGIN field_items -->
    											<li><label>{radiobuttons:parent.field_label,rowcnt,parent.field_value,inner_key}&nbsp;{inner_value}</label></li>
    										<!-- END field_items -->
    									</ul>
    									<div class="clear"></div>
    								<!-- ELSEIF field_type = "combo" -->
    									<select class="select" id="field_{field_label}" name="{field_label}">{dropdownlist:field_items,field_value}</select>
    								<!-- ELSEIF field_type = "birthday" -->
    									<!-- IF session.timeformat -->
    										<select class="select" name="{field_label}_month">{dropdownlist:top.months,field_value_month}</select>
    										<select class="select" name="{field_label}_day">{dropdownlist:top.days,field_value_day}</select>
    									<!-- ELSE -->
    										<select class="select" name="{field_label}_day">{dropdownlist:top.days,field_value_day}</select>
    										<select class="select" name="{field_label}_month">{dropdownlist:top.months,field_value_month}</select>
    									<!-- ENDIF -->
    									<select class="select" name="{field_label}_year">{dropdownlist:top.birthday_years,field_value_year}</select>
    								<!-- ELSEIF field_type = "date" -->
    									<select class="select" name="{field_label}_month">{dropdownlist:top.months,field_value_month}</select>
    									<select class="select" name="{field_label}_day">{dropdownlist:top.days,field_value_day}</select>
    									<select class="select" name="{field_label}_year">{dropdownlist:years,field_value_year}</select>
    								<!-- ELSEIF field_type = "time" -->
    									<select class="select" name="{field_label}_hour">{dropdownlist:top.hours,field_value_hour}</select>
    									<select class="select" name="{field_label}_minute">{dropdownlist:top.minutes,field_value_minute}</select>
    								<!-- ELSEIF field_type = "datetime" -->
    									<select class="select" name="{field_label}_month">{dropdownlist:top.months,field_value_month}</select>
    									<select class="select" name="{field_label}_day">{dropdownlist:top.days,field_value_day}</select>
    									<select class="select" name="{field_label}_year">{dropdownlist:years,field_value_year}</select> @
    									<select class="select" name="{field_label}_hour">{dropdownlist:top.hours,field_value_hour}</select>
    									<select class="select" name="{field_label}_minute">{dropdownlist:top.minutes,field_value_minute}</select>
    								<!-- ENDIF -->
    
    							</dd>
    
    						<!-- END profile_fields -->
    
    					</dl>
    					<div class="clear"></div>
    				</div>
    			</div>
    
    		<!-- END profile_groups -->
    
    	</div>
    
    <!-- END profile_types -->

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    Code:
    <div id="profile_type_{type_id}" class="profile_type" style="display:none">
    The whole of that second section of code has 'display:none'... so it is not visible for us to check

    .. and it is JavaScript not Java!
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • Users who have thanked AndrewGSW for this post:

    mikeisflux (08-05-2012)

  • #3
    New Coder
    Join Date
    Aug 2012
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by AndrewGSW View Post
    Code:
    <div id="profile_type_{type_id}" class="profile_type" style="display:none">
    The whole of that second section of code has 'display:none'... so it is not visible for us to check

    .. and it is JavaScript not Java!
    That is so weird how it was like that and still be available to be viewd on android.

    I changed
    Code:
    <div id="profile_type_{type_id}" class="profile_type" style="display:none">
    to
    Code:
    <div id="profile_type_{type_id}" class="profile_type" >
    is it able to be viewed now on an iphone?

  • #4
    New Coder
    Join Date
    Aug 2012
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts
    if someone could hop on an iphone and go to www.datethebasin.com, click on sign-up, and see if they can view the following fields: I am, seeking a, age, city, zip code That would really be amazing. I'm doing all of this in the blind here developing for people and none of my friends even have an iphone lol

  • #5
    New Coder
    Join Date
    Aug 2012
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Ok I got this all set up and this is now what is happening:

    User fills out form on the signup tab on the iphone
    User clicks on choose photo
    Iphone opens the Picup App
    User chooses and uploads photo and it goes back to the sign up page
    User clicks on submit.
    User gets error saying must upload photo.

    I am really honestly not advanced enough in this stuff to even attempt to go any further than I already have. I’m sure this is something really really simple that can be fixed no problem. Any and all help would be awesome.

  • #6
    New Coder
    Join Date
    Aug 2012
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts
    This is the tutorial I'm following, rather attempting to muddle through.

    http://www.parorrey.com/blog/php-dev...upload-images/

    And if you feel like taking it on, here's another link:

    https://www.elance.com/job/32473848


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •