Questions tagged [extend]

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

Cause a unit of code (a class in POO, a style class in CSS ...) to cover a wider area.

1544 questions
0
votes
0 answers

extjs Issue extending Ext.grid.header.Container

I am trying to create remote multi sort. fields are separated by comma. MINUS stands for DESC EXAMPLE localhost:8080/api/?sort=id,-externalId&page=1&start=0&limit=200 headerclick works fine while i am writing it in grid columns config. but when i am…
Lev Savranskiy
  • 422
  • 2
  • 7
  • 19
0
votes
2 answers

Apply validation module to model in certain controllers only

I have a model that can be edited by two different types of users. The first has a login and has special privileges (let's call them a 'user'). The second is just some random user without a login with limited privileges (let's call them a 'guest').…
Chris Butler
  • 733
  • 6
  • 23
0
votes
1 answer

how to show a div if some content on a page extend and not longer fits the screen totaly but there is a scroll bar needed

I have a script that will hide a div when the site fills the screen but there is no need to scroll the page down so the site fits the screen at this point the divs are hidden true the script. I have some content that will extend when you click on a…
phj
  • 123
  • 2
  • 9
0
votes
2 answers

Silverlight - extend User (or AuthenticationService)

I need to access the UserId of my Users, so I guess this can be done by extending user.shared and AuthenticationService. It is my goal to access the UserId (which is a "Guid") at the client side, by default this is not possible. @ User.shared I…
0
votes
1 answer

C++ Linker Errors When Trying To Extend A Class From Lib

I am really not understanding this. Basically, I am trying to make, as a library, some classes to aid in handling some DirectX stuff so that I don't have to do it in other games. GameBase is a class I made. This dll project compiles as a dll and it…
Nkosi Dean
  • 227
  • 8
  • 18
0
votes
1 answer

Unable to Extend DataView in Sencha 1.1

I am trying to extend Sencha 1.1 DataView in order to build my own Picker. However - the Extention doesn't work. It seems like it doesn't even call the initComponent, and whenever I am trying to turn to the superclass with calling one of its methods…
Assaf
  • 788
  • 2
  • 9
  • 23
0
votes
1 answer

extending native session class codeigniter 1.7.2

I'm using native session library to replace the built in session library in CI. I need to extend the class but when I drop in MY_Session.php, CI reverts back to the old /system/libraries/Session.php. How to I extend a class that's replaced a core CI…
ringerce
  • 533
  • 2
  • 12
  • 25
0
votes
1 answer

jQuery plugin: Define defaults for NESTED options

I would like to define defaults for nested options like this: $("div").filters({ url : 'url.example.com' filters : { 'projects' : { 'type' : 'dropdown', 'min' : 1, …
Sthe
  • 2,575
  • 2
  • 31
  • 48
0
votes
1 answer

How bulky are extended classes in Java?

I've a class called MapTile that extends JLabel. What I'm doing is loading a JPanel with a lot of MapTile's in a GridLayout. I notice when I load in 100x100 MapTile's the process takes longer than loading in 100x100 JLabel's. This is my MapTile…
Lucas
  • 1,149
  • 1
  • 9
  • 23
0
votes
1 answer

extending jquery 1.2 to include index()

I'm working with some 3rd party teams and am unable to upgrade to jquery 1.4+ and therfor stuck with 1.2. I was wondering if there was a way to extend the library to include the index() method. I tried writing a quick function but had no…
Phil Jackson
  • 10,238
  • 23
  • 96
  • 130
0
votes
2 answers

jquery how to override the class method?

Looks like this question is popular, but there is no jQuery version. I have two classes the second is extended from the first one. The extension method is copied from here. function UIButton(o){ if (typeof(o) != 'undefined') $.extend(true, this,…
Fenix Lam
  • 386
  • 6
  • 22
0
votes
2 answers

Extjs 4 extending application for mdi

Is there any way to extend an application into another application for mdi ? For ex. I have 3 applications : "Transaction" ,"SalesOrder" & "PurchaseOrder" i want to reuse "Transaction" by extending it in "SalesOrder" & "PurchaseOrder" . Whats the…
S R
  • 674
  • 2
  • 18
  • 45
0
votes
1 answer

Extending Jquery : To Render Partial

I'm trying to write a function that extends jquery. It appears to be working but I get this error when trying to use it. XMLHttpRequest cannot load file:.../WebstormProjects/JQuery.FormHelpers/_partial.html. Origin null is not allowed by…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
3 answers

How to extend a PHP class within the class

I'm rather new to OOP and have a question about how to best deal with using one class name, but then adding functionality to that class internally based on a parameter passed. Basic story is I have an 'item' class which takes 2 parameters $module…
Charlie
  • 323
  • 2
  • 12
0
votes
1 answer

Do not prolong session expiration when ajax call makes

I use slidingExpiration session on my web site. And I also added ajax call to check each 15 min session expiration to redirect user on login page. Is it possible to not extend session when this ajax is called?
Yara
  • 4,441
  • 6
  • 42
  • 62