473,804 Members | 3,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: f.PermissionID has no properties (whyyyyyyyy)

8 New Member
Expand|Select|Wrap|Line Numbers
  1.  
  2. <form method="post" action="javascript:void(0);" name="ShareOptionsForm" onsubmit="if (VerifyForm('ShareOptionsForm')) { AddShareJob(); HideShareOptions(); setTimeout('RefreshCart()', 1000); } else { return false; }">
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.             <p><label for="ContactID">Recipient</label><br />
  10.             <select name="ContactID" id="ContactID" onChange="FadeOutError('RecipientError')">
  11.             <option value="">Select a Recipient...</option>
  12.             <?php
  13.                 if (isset($recipients) && !empty($recipients)) {
  14.                     foreach ($recipients as $recipient) {
  15.                         $recipientText = '';
  16.                         if (!empty($recipient['Company'])) {
  17.                             $recipientText = $recipient['Company'] . ' - ';
  18.                         }
  19.                         $recipientText .= "{$recipient['FirstName']} {$recipient['LastName']}"; /*  ({$recipient['Email']}) */
  20.                         print "<option value=\"{$recipient['ContactID']}\">{$recipientText}</option>\n";
  21.                     }
  22.                 }
  23.             ?>
  24.             </select> or <input type="button" name="AddNewRecipient" id="AddNewRecipient" value="Add New Recipient" onclick="ShowShareNewRecipient();" /></p>
  25.             <div id="RecipientError" class="error" style="display:<?php if (isset($RecipientError)) echo 'block'; else echo 'none'; ?>"><?php if (isset($RecipientError)) echo $RecipientError; ?> </div>
  26.             <h2>Permissions</h2>
  27.  
  28.             <p>Permissions tell us how you want this recipient to be allowed to share these documents. Move the slider below to control the level of permissions.</p>
  29.  
  30.             <div id="PermissionExplanation" style="font-style:italic;font-weight:bold;text-align:center;width:500px;height:35px;"><p>This recipient will not be allowed to share these documents.</p></div>
  31.     <input type="hidden" name="PermissionID" value="1" />        
  32.  
  33. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  34. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  35.             <input type="radio" name="permission" id="permission1" value="152" onclick="ChangePermissionGraphic(152)" />
  36. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  37. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    &nbsp;&nbsp;&nbsp;&nbsp;      
  38.             <input type="radio" name="permission" id="permission2" value="313" onclick="ChangePermissionGraphic(313)"/>
  39.             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  40. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
  41.   <input type="radio" name="permission" id="permission3" value="466" onclick="ChangePermissionGraphic(466)"/>
  42.  
  43.             <p><img src="images/permission1.jpg" width="500" height="174" alt="Permissions" border="0" id="PermissionGraphic" /></p>
  44.  
  45.             <p>
  46.             <input type="submit" name="Submit" value="Share These Documents" /> &nbsp; <input type="button" name="Cancel" value="Cancel" id="Cancel" onclick="HideShareOptions();" /></p>
  47.  
  48.             <script language="JavaScript" type="text/javascript">
  49.             <!--
  50.             // Script placed here because apparently problems crop up in IE otherwise.
  51.  
  52.  
  53.  
  54.                 var Image1 = new Image();
  55.                 Image1.src = "images/permission1.jpg";
  56.                 var Image2 = new Image();
  57.                 Image2.src = "images/permission2.jpg";
  58.                 var Image3 = new Image();
  59.                 Image3.src = "images/permission3.jpg";
  60.  
  61.  
  62.                 function ChangePermissionGraphic(v) {
  63.  
  64.                 //alert("test from slider");
  65.                     d = document; f = d.ShareOptionsForm;
  66.  
  67.  
  68.                     switch (v) {
  69.                         case 152:
  70.                             d.getElementById('PermissionGraphic').src = 'images/permission1.jpg';
  71.                             d.getElementById('PermissionExplanation').innerHTML = '<p>This recipient will not be allowed to share these documents.</p>';
  72.                             f.PermissionID.value = 1;
  73.                             break;
  74.                         case 313:
  75.                             d.getElementById('PermissionGraphic').src = 'images/permission2.jpg';
  76.                             d.getElementById('PermissionExplanation').innerHTML = '<p>This recipient will be allowed to share these documents with other people, but they will not be allowed to share the documents.</p>';
  77.                         f.PermissionID.value = 2;
  78.  
  79.  
  80.  
  81.  
  82.                             break;
  83.                         case 466:
  84.                             d.getElementById('PermissionGraphic').src = 'images/permission3.jpg';
  85.                             d.getElementById('PermissionExplanation').innerHTML = '<p>These documents can be shared with anybody.</p>';
  86.                             f.PermissionID.value = 3;
  87.                             break;
  88.                     }
  89.                 }
  90.  
  91.  
  92.             //-->
  93.             </script>
  94.  
  95.             </form>
  96.  
  97.  
  98.  
Apr 3 '08 #1
4 1098
pronerd
392 Recognized Expert Contributor
I do not see any element in that code that has an "id" attribute of "Permission ID". So when you call that element in your code you are trying to access an object that is null.
Apr 3 '08 #2
2levelsabove
8 New Member
Thanks for the quick reply. Per your instructions I added the ID field. and I still get the same error.


<input type="hidden" name="Permissio nID" id="PermissionI D" value="1" />
Apr 3 '08 #3
2levelsabove
8 New Member
However I am able to get it now by

d.getElementByI d('PermissionID ').value


Why is that >???????


f.PermissionID. value = 1 should have worked.
Apr 3 '08 #4
hsriat
1,654 Recognized Expert Top Contributor
I'm not sure why is this not working, but

Try with

f = d.forms['ShareOptionsFo rm']
OR
d.forms['ShareOptionsFo rm'].PermissionID.v alue = 1

If first one works, this means we may not declare form as variable like
f = d.ShareOptionsF orm

If seconds works, this means we may not declare any variable to save form in it.

If none works, there's some problem with the other part of the code.

Regards
Apr 3 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1993
by: Steve Long | last post by:
Hello, I hope this is the right group to post this to. I'm trying to serialize a class I've written and I'd like to be able to serialze to both binary and xml formats. Binary serialization is working fine but when I try to instantiate an XmlSerializer object with: Dim xmls As New XmlSerializer(GetType(CLayerDefinition)) I get the following error:
6
4763
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
14
10147
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought I should give back to the community by posting our findings. Thanks you all for all your help till now by posting problems and their solutions. ~Abhijit
19
6274
by: MLH | last post by:
I call the following Sub and Function in frmLaunch's OnOpen event code. I keep getting Property Not Found error for the AllowBypassKey setting. Failure point is line #30 in the Function (not the Sub). Ideas? Sub SetStartupProperties() On Error GoTo SetStartupProperties_Err 10 ChangeProperty "StartupForm", dbText, "frmLaunch" ' Form you want to open at startup 20 ChangeProperty "StartupShowDBWindow", dbBoolean, False ...
0
365
by: Kenneth H. Young | last post by:
I am having difficulties with an LDAP client I'm writing. What I have discovered causes the error is when the client queries the LDAP server and a record contains two values entered in one field that is semicolon ";" separated. i.e. A telephone number. In RED below. How can I handle this? Thanks is advance for any help. Note: The LDAP server is not a Microsoft AD server.
8
4199
by: Kevin Blount | last post by:
I'm tyring to access an object created by using a method from a third party API. The documentation tells me what object should be return, and the properties of that object, but when I try and access one of those properties I've shown an error message saying that the Object doesn't support this property or method. Here's the code I'm using (edited to protect the third party NDA) 1: <% 2: dim siteApi, userApi
1
1786
by: Gilberto | last post by:
Hello I have a big BIG problem. Im new with acces and ive been creating a db for a month now. It was working perfectly and just after i did a db SPLIT some functions began displaying error 2465. I first thought it was caused by the SPLIT but now ive opened backedup files from weeks ago and it ALSO gives me error 2465 which it didnt give me before. What could have happened??? What can i do??? Example: this function worked EXCELLENT, now its...
2
2000
Dormilich
by: Dormilich | last post by:
Hi, I'm testing my classes for a web page and I stumble upon an error I don't have a clue what it means: Error: Fatal error: Can't use method return value in write context in "output.php" on line 142 (line 12 in snippet) the error is caused by this call: empty($inSeite_inp->getValue('PAR_NAME')) method definition see second snippet, lines 142 to 166
11
5599
by: xenoix | last post by:
hey there, im reasonably new to C# and im currently writing a backup application which im using as a learning resource. My PC :- Visual Studio 2005 .NET Framework 2 Component Factory Krypton Tools Test PC :- .Net Framework 2
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.